Using GPResult
GPResult.exe is a command-line tool built into Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008 that can be used for displaying Group Policy settings and RSoP for a specified user or a computer. Two new command-line switches were added to GPResult.exe beginning with Windows Vista SP1 and Windows Server 2008:
- /x filename Saves the report in XML format at the location and with the filename specified by the filename parameter
- /h filename Saves the report in HTML format at the location and with the filename specified by the filename parameter
In addition, GPResult now requires command-line parameters when it is run. For more information concerning GPResult.exe syntax and usage, see http://technet2.microsoft.com /windowsserver2008/en/library/dfaa3adf-2c83-486c-86d6-23f93c5c883c1033.mspx?mfr=true. For additional information, see this posting on the Ask The Directory Services Team Blog: http://blogs.technet.com/askds/archive/2007/12/04/an-old-new-way-to-get-group-policyresults.aspx.
It's important to know the CSE and XMLLite install requirements for Group Policy preferences because this is the number one Group Policy issue for Microsoft Product Support Services (PSS). To ensure that the preference items are applied to clients, complete the following prerequisite tasks:
- Install the Group Policy CSEs on any clients in which you plan to deploy preference items if the CSEs are not already installed by default. These are required for clients to process Group Policy preferences.
- Install XMLLite on the same clients if it is not already installed by default (see http://msdn.microsoft.com/en-us/library/ms752838.aspx for more information).
One option for installing the CSEs and XMLLite is to use a script (see http://heidelbergit.blogspot.com/2008/03/how-to-install-gpp-cses-using-startup.html for an example). Alternatively, you can obtain the CSEs through Windows Update or Windows Server Update Services (WSUS) or from the Microsoft Download Center. Then, you can obtain XMLLite from the Download Center.
The following information will help you determine whether the CSEs and XMLLite need to be installed and whether you can obtain them from the Microsoft Download Center or from Windows Update.
Requirements for CSEsThe following are the requirements for installing CSEs on earlier versions of Windows:
- Windows Server 2008 CSEs are already included and therefore do not need to be installed
- Windows Vista and Windows Vista with SP1 Download and install the
32-bit edition of CSEs from http://go.microsoft.com/fwlink/?LinkId=111859
and the 64-bit edition from http://go.microsoft.com/fwlink/?LinkID=111857. - Windows XP with SP2 or later Download and install the 32-bit edition of CSEs from http://go.microsoft.com/fwlink/?LinkId=111851 and the 64-bit edition from http://go.microsoft.com/fwlink/?LinkId=111862.
- Windows Server 2003 with SP1 or later Download and install the 32-bit edition of CSEs from http://go.microsoft.com/fwlink/?LinkId=111852 and the 64-bit edition from http://go.microsoft.com/fwlink/?LinkId=111863.
Note that XMLLite is not needed if:
- Your clients run Windows Server 2008 or Windows Vista.
- Your Windows XP and Windows Server 2003 clients run Internet Explorer 7 and/or the latest service packs.
For clients that run Windows Server 2003 and Windows XP operating system versions that support the CSEs, the following list indicates the requirements and where to obtain XMLLite from the Download Center:
- Windows XP SP3 XMLLite is already included and does not need to be installed.
- Windows XP SP2 Unless Internet Explorer 7 is installed (in which case XMLLite is included), you must download and install XMLLite from http://go.microsoft.com/fwlink/?LinkId=111843.
- Windows Server 2003 SP2 XMLLite is already included and does not need to be installed.
- Windows Server 2003 SP1 Unless Internet Explorer 7 is installed (in which case XMLLite is included), you must download and install XMLLite from http://go.microsoft.com/fwlink/?LinkId=111843.
In this tutorial:
- Managing the Desktop Environment
- Understanding Group Policy in Windows 7
- Group Policy Before Windows Vista
- Group Policy in Windows Vista and Windows Server 2008
- New Group Policy Features in Windows 7 and Windows Server 2008 R2
- Group Policy Policy Settings in Windows 7
- Understanding ADMX Template Files
- Types of ADMX Template Files
- Local Storage of ADMX Template Files
- Considerations When Working with ADMX Template Files
- Understanding Multiple Local Group Policy
- MLGPOs and Group Policy Processing
- Managing Group Policy
- Adding ADMX Templates to the Store
- Creating and Managing GPOs
- Using Starter GPOs
- Creating and Managing GPOs Using the GPMC
- Creating and Managing GPOs Using Windows PowerShell
- Editing GPOs
- Configuring Policy Settings
- Configuring Preference Items
- Managing MLGPOs
- Migrating ADM Templates to ADMX Format
- Converting ADM Template Files to ADMX Format
- Creating and Editing Custom ADMX Template Files
- Configuring Group Policy Processing
- Using Advanced Group Policy Management
- Troubleshooting Group Policy
- Enabling Debug Logging
- Using Group Policy Log View
- Using GPResult