Updated: April 17, 2012

Applies To: Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2012, Windows 8

Fix domain name dependencies in Group Policy Objects and Group Policy links after a domain rename operation. For examples of how this command can be used, see Examples.

Syntax

Gpfixup [/v]
[/olddns:<OLDDNSNAME> /newdns:<NEWDNSNAME>]
[/oldnb:<OLDFLATNAME> /newnb:<NEWFLATNAME>]
[/dc:<DCNAME>] [/sionly]
[/user:<USERNAME> [/pwd:{<PASSWORD>|*}]] [/?]

Parameters

 

Parameter

Description

/v

Displays detailed status messages.

If this parameter is not used, only error messages or a summary status message of 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:

  • The DNS name <NEWDNSNAME> by using /newdns

  • The NetBIOS name <NEWFLATNAME> by using /newnb

If this parameter is not used, connect to any domain controller in the renamed domain indicated by <NEWDNSNAME> or<NEWFLATNAME>.

/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 is not used, runs this command as the logged in user.

/pwd:{<PASSWORD>|*}

Specifies the password for the other security context indicated by using /user. If * is specified instead of a password, you are prompted for a password.

/?

Displays Help at the command prompt.

Remarks

  • The gpfixup command is available in Windows Server 2008 R2 and Windows Server 2008, except on Server Core installations.

  • Although the Group Policy Management Console (GPMC) is distributed with Windows Server 2008 R2 and Windows Server 2008, you must install Group Policy Management as a feature through Server Manager.

Examples

This example assumes that you have already performed a domain rename operation in which you changed the DNS name from MyOldDnsName toMyNewDnsName, 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

Gpfixup的更多相关文章

  1. Windows命令大全

    From:http://technet.microsoft.com/zh-cn/library/cc731728(v=ws.10).aspx Adprep Append Arp Assoc At At ...

  2. 【264】◀▶ Windows 批处理(CMD)

    参考:Windows Commands 微软官方帮助 参考:DOS命令自学小窍门:巧用help命令 参考:bat批处理的注释语句 打开文件夹: start D:\abc 打开D盘abc文件夹 打开ex ...

  3. Dcgpofix

    TechNet Library Windows Server Windows Server 2012 R2 and Windows Server 2012 Management and Tools C ...

  4. Dsamain

    TechNet 库 Windows Server Windows Server 2008 R2 und Windows Server 2008 Windows Server 命令.参考和工具 Comm ...

随机推荐

  1. 淘宝H5移动端解决方案

    详细:http://www.w3cplus.com/mobile/lib-flexible-for-html5-layout.html ; (function(win, lib) { var doc ...

  2. mysql用户常见操作

    一, 创建用户: 命令:CREATE USER 'username'@'host' IDENTIFIED BY 'password'; 说明:username - 你将创建的用户名, host - 指 ...

  3. grunt + sass 使用记录

    环境依赖 Nodejs for grunt Ruby for sass 配置文件 package.json { "name": "app", "ver ...

  4. Visual Studio 更改护眼颜色

  5. pat甲级1139

    1139 First Contact(30 分) Unlike in nowadays, the way that boys and girls expressing their feelings o ...

  6. 如何查看CRM WebUI,C4C和Hybris里的页面技术信息

    CRM 在WebClient UI页面上按F2,就能看到页面的技术信息, 可以找到当前页面是哪一个BSP component实现的: C4C 在浏览器url里添加debugMode=true,然后按住 ...

  7. POJ 1703 Find them, Catch them(并查集,等价关系)

    DisjointSet保存的是等价关系,对于某个人X,设置两个变量Xa,Xb.Xa表示X属于a帮派,Xb类似. 如果X和Y不是同一个帮派,那么Xa -> Yb,Yb -> Xa... (X ...

  8. python基础一 day17 初识递归

    #递归函数 # 了解什么是递归 : 在函数中调用自身函数 # 最大递归深度默认是997/998 —— 是python从内存角度出发做得限制 # 能看懂递归 # 能知道递归的应用场景 # 初识递归 —— ...

  9. GCH文件

    GCH文件是将H文件当作CPP进行编译之后出现的结果, 在头文件进行编译后就会在文件夹中看到一个 “文件名.h.gch” 的文件. 那么在再次对gch文件进行编译的时候就会将gch当作cpp一样对待. ...

  10. arr.forEach()与for...in的用法举例

    1.forEach() 将给定的数字转换成罗马数字. 所有返回的 罗马数字 都应该是大写形式. function convert(num) { var str = ""; var ...