Sunday, March 17, 2013

Export all GPO’s across domains in html file.


Below are the AD-PowerShell commands to Export all GPO's across domains in html file.



Syntax:
Import-Module Grouppolicy
Get-GPOReport -All -ReportType html -path c:\gpo.htm

OR


Get-GPOReport -Name "GPO Name" -Server domain.com -ReportType html
-path c:\GPO.html


Help about –Module:
get-command –module grouppolicy
get-command –module grouppolicy | get-help


---Being handy sometime ;)

No comments:

Post a Comment