Solution #1 (separate lines in PowerShell or ISE)
$gpos = Get-GPO -all | select displayname
foreach ($g in $gpos) {
Get-GPOReport -ReportType Html -Name $g.displayname -Path C:\reports\$g.html
This script generates individual reports for all GPOs in the domain.
Solution #2 (all on one line)
(Get-GPInheritance -Target "ou=developers,ou=gnv,ou=employees,dc=lab,dc=itpro,dc=tv").GpoLinks | ForEach-Object {Get-GPOReport -ReportType Html -Name ($_.displayname) -Path (Join-Path C:\Reports\ $_.displayname)}
This script generates individual reports for GPOs directly linked to the OU specified with the -target parameter.
Solution #3 (all on one line)
(Get-GPInheritance -Target "ou=developers,ou=gnv,ou=employees,dc=lab,dc=itpro,dc=tv").InheritedGpoLinks | ForEach-Object {Get-GPOReport -ReportType Html -Name ($_.displayname) -Path (Join-Path C:\Reports\ $_.displayname)}
This script generates individual reports for GPOs directly linked to and inherited by the OU specified with the -target parameter.
Make sure to change the -target parameter and the -path parameter for your environment.
With the last two solutions, the generated reports do not include a file extension. They are html files, and you can open them with your browser. Everything I tried to add the file extension broke the script 
How about another script that renames the reports, 
Mike Rodrick
Edutainer, ITProTV
**if the post above has answered the question, please mark the topic as solved.