question

MattD-7613 avatar image
0 Votes"
MattD-7613 asked YoungYang-MSFT answered

Group Policy Reports

I need an Excel report of the Group Policies I am working with and am running the following PowerShell command on a Windows Server 2012 R2 and a Windows Server 2008 R2:

Get-GPOReport –Name “PolicyName” –ReportType Html – Path “C:\PS\Reports\PolicyName.html”

When I open the attached 2008 result with Excel, I see the policies, albeit a bit hard to look at, and the applied settings.


When I open the attached 2012 result, I don’t see the settings at all – just this:

"; htmlText = htmlText + "
"; htmlText = htmlText + "
"; htmlText = htmlText + "
"; htmlText = htmlText + "
"; htmlText = htmlText + "
"; htmlText = htmlText + "


I can see the full html file for both when opening with a browser without an issue.

The reason I am trying to use the 2012 one is because the results were incomplete for one of the reports and for whatever reason did not capture all of the settings.

I guess my questions are:
1. Why the difference between results?
2. How can I get all the settings using the 2008 server?

windows-group-policy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YoungYang-MSFT avatar image
0 Votes"
YoungYang-MSFT answered

According to my test on my computer, using the same method as you on the same version of the computer, I got the same result as you. This shows that you can't use excel to open, please use the correct way to open the file.
As for your other questions, it is currently being studied and tested.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.