text stringlengths 0 4.23k |
|---|
<newflatname> |
<newflatname> |
<dcname> |
<dcname> |
<dcname> |
<newdnsname> |
<newflatname> |
<newdnsname> |
<newflatname> |
<username> |
<username> |
<username> |
{<password> | *} |
Examples |
This example assumes that you have already performed a domain rename operation in which you changed the DNS name from MyOldDnsName to MyNewDnsName, and the NetBIOS name from MyOldNetBIOSName to MyNewNetBIOSName. |
In this example, you use the gpfixup command to connect to the domain controller named MyDcDnsName and repair GPOs and Group Policy links by updating the old domain name embedded in the GPOs and links. Status and error output is saved to a file that is named gpfixup.log. |
gpfixup /olddns: MyOldDnsName /newdns:MyNewDnsName /oldnb:MyOldNetBIOSName /newnb:MyNewNetBIOSName /dc:MyDcDnsName 2>&1 >gpfixup.log |
This example is the same as the previous one, except that it assumes the NetBIOS name of the domain was not changed during the domain rename operation. |
gpfixup /olddns: MyOldDnsName /newdns:MyNewDnsName /dc:MyDcDnsName 2>&1 >gpfixup.log |
gpresult |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Displays the Resultant Set of Policy (RSoP) information for a remote user and computer. To use RSoP reporting for remotely targeted computers through the firewall, you must have firewall rules that enable inbound network traffic on the ports. |
Syntax |
gpresult [/s <system> [/u <username> [/p [<password>]]]] [/user [<targetdomain>\]<targetuser>] [/scope {user | computer}] {/r | /v | /z | [/x | /h] <filename> [/f] | /?} |
Note |
Except when using /?, you must include an output option, /r, /v, /z, /x, or /h. |
Parameters |
Parameter |
Description |
/s <system> |
Specifies the name or IP address of a remote computer. Don't use backslashes. The default is the local computer. |
/u <username> |
Uses the credentials of the specified user to run the command. The default user is the user who is logged on to the computer that issues the command. |
/p [<password>] |
Specifies the password of the user account that is provided in the /u parameter. If /p is omitted, gpresult prompts for the password. The /p parameter can't be used with /x or /h. |
/user [<targetdomain>\]<targetuser>] |
Specifies the remote user whose RSoP data is to be displayed. |
/scope {user | computer} |
Displays RSoP data for either the user or the computer. If /scope is omitted, gpresult displays RSoP data for both the user and the computer. |
[/x | /h] <filename> |
Saves the report in either XML (/x) or HTML (/h) format at the location and with the file name that is specified by the filename parameter. Can't be used with /u, /p, /r, /v, or /z. |
/f |
Forces gpresult to overwrite the file name that is specified in the /x or /h option. |
/r |
Displays RSoP summary data. |
/v |
Displays verbose policy information. This includes detailed settings that were applied with a precedence of 1. |
/z |
Displays all available information about Group Policy. This includes detailed settings that were applied with a precedence of 1 and higher. |
/? |
Displays help at the command prompt. |
<system> |
<username> |
[<password>] |
[<targetdomain>\]<targetuser>] |
{user | computer} |
[/x | /h] <filename> |
Remarks |
Group Policy is the primary administrative tool for defining and controlling how programs, network resources, and the operating system operate for users and computers in an organization. In an active directory environment, Group Policy is applied to users or computers based on their membership in sites, domains, or org... |
Because you can apply overlapping policy settings to any computer or user, the Group Policy feature generates a resulting set of policy settings when the user logs on. The gpresult command displays the resulting set of policy settings that were enforced on the computer for the specified user when the user logged on. |
Because /v and /z produce a lot of information, it's useful to redirect output to a text file (for example, gpresult/z >policy.txt). |
gpresult/z >policy.txt |
On ARM64 versions of Windows, only the gpresult in SysWow64 works with the /h parameter. |
gpresult |
/h |
Examples |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.