- Mastering Windows Group Policy
- Jordan Krause
- 147字
- 2021-06-10 18:48:01
Sending the output to a file
As stated previously, the /X and /H switches can both be used in order to export the gpresult data to a file. This can be helpful for submitting reports, for logging data during a troubleshooting session, or simply to be able to view the Group Policy data in a more user-friendly format. I prefer exporting to and viewing RSoP data inside an HTML file. If you open up Command Prompt, browse to the C:\Temp directory and issue the following command, the Group Policy summary will be exported to the C:\Temp folder on your machine:
GPResult /H GPOs.html
The generated HTML document is easily read inside a web browser, and displays all of the data about which GPOs were applied or not applied. This is much nicer and easier to read than skimming this information from inside a Command Prompt window.