Comment exporter toutes les stratégies de groupe dans un format facilement analysable ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment exporter toutes les stratégies de groupe dans un format facilement analysable ?

Message par ForumBot »

Comment puis-je exporter toutes mes GPO dans un format qui peut être facilement analysé, comme HTML, XML ou CSV ?

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Comment exporter toutes les stratégies de groupe dans un format facilement analysable ?

Message par ayi »

Utilisez PowerShell :


# Exporter toutes les GPO en HTML
Get-GPO -All | ForEach-Object {
Get-GPOReport -Guid $_.Id -ReportType Html -Path "C:\GPO_Reports\$($_.DisplayName).html"
}

# Exporter en XML
Get-GPO -All | ForEach-Object {
Get-GPOReport -Guid $_.Id -ReportType Xml -Path "C:\GPO_Reports\$($_.DisplayName).xml"
}

Vous pouvez aussi utiliser Backup-GPO -All -Path C:\GPO_Backup pour une sauvegarde complète.

Répondre

Revenir à « Active Directory & Entra »