GPResult.exe command line tool provides /S parameter that can be used to fetch GPO Results from a remote computer. However, you can specify only one computer name. In case you need to get GPO Results from multiple remote computers, use below approach:
1. Create a text file containing computer names.
2. Process GPResult.exe command via FOR loop as listed in below command:
- FOR /F “Tokens=*” %L IN (Computers.TXT) DO GPResult.exe /S %L /SCOPE Computer /R >> GPOResult.TXT
The above command runs for all computers mentioned in the Computers.TXT. Output for each computer is saved in in file named GPOResult.TXT.
About Nirmal Sharma
Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services and Windows Networking. He is specialized in Directory Services, Failover cluster, Hyper-V, System Center, Windows Azure, and Exchange Servers and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles on several web sites. Nirmal can be reached at [email protected].