Atvik
Apr 29, 2 PM - Apr 30, 7 PM
Taktu þátt í fullkomnum sýndarviðburði Windows Server 29.-30. apríl fyrir djúpa tæknifundi og spurningar og svör í beinni með verkfræðingum Microsoft.
Skráðu þig núnaÞessi vafri er ekki lengur studdur.
Uppfærðu í Microsoft Edge til að nýta þér nýjustu eiginleika, öryggisuppfærslur og tæknilega aðstoð.
Fixes domain name dependencies in Group Policy Objects and Group Policy links after a domain rename operation. To use this command, you must install Group Policy Management as a feature through Server Manager.
gpfixup [/v]
[/olddns:<olddnsname> /newdns:<newdnsname>]
[/oldnb:<oldflatname> /newnb:<newflatname>]
[/dc:<dcname>] [/sionly]
[/user:<username> [/pwd:{<password>|*}]] [/?]
Parameter | Description |
---|---|
/v | Displays detailed status messages. If this parameter isn't used, only error messages or a summary status message stating, SUCCESS or FAILURE appears. |
/olddns:<olddnsname> |
Specifies the old DNS name of the renamed domain as <olddnsname> when the domain rename operation changes the DNS name of a domain. You can use this parameter only if you also use the /newdns parameter to specify a new domain DNS name. |
/newdns:<newdnsname> |
Specifies the new DNS name of the renamed domain as <newdnsname> when the domain rename operation changes the DNS name of a domain. You can use this parameter only if you also use the /olddns parameter to specify the old domain DNS name. |
/oldnb:<oldflatname> |
Specifies the old NetBIOS name of the renamed domain as <oldflatname> when the domain rename operation changes the NetBIOS name of a domain. You can use this parameter only if you use the /newnb parameter to specify a new domain NetBIOS name. |
/newnb:<newflatname> |
Specifies the new NetBIOS name of the renamed domain as <newflatname> when the domain rename operation changes the NetBIOS name of a domain. You can use this parameter only if you use the /oldnb parameter to specify the old domain NetBIOS name. |
/dc:<dcname> |
Connect to the domain controller named <dcname> (a DNS name or a NetBIOS name). <dcname> must host a writable replica of the domain directory partition as indicated by one of the following:
|
/sionly | Performs only the Group Policy fix that relates to managed software installation (the Software Installation extension for Group Policy). Skip the actions that fix Group Policy links and the SYSVOL paths in GPOs. |
/user:<username> |
Runs this command in the security context of the user <username> , where <username> is in the format domain\user. If this parameter isn't used, this command runs as the logged in user. |
/pwd:{<password> | *} |
Specifies the password for the user. |
/? | Displays Help at the command prompt. |
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
Atvik
Apr 29, 2 PM - Apr 30, 7 PM
Taktu þátt í fullkomnum sýndarviðburði Windows Server 29.-30. apríl fyrir djúpa tæknifundi og spurningar og svör í beinni með verkfræðingum Microsoft.
Skráðu þig núna