Gpfixup
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:
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的更多相关文章
- Windows命令大全
From:http://technet.microsoft.com/zh-cn/library/cc731728(v=ws.10).aspx Adprep Append Arp Assoc At At ...
- 【264】◀▶ Windows 批处理(CMD)
参考:Windows Commands 微软官方帮助 参考:DOS命令自学小窍门:巧用help命令 参考:bat批处理的注释语句 打开文件夹: start D:\abc 打开D盘abc文件夹 打开ex ...
- Dcgpofix
TechNet Library Windows Server Windows Server 2012 R2 and Windows Server 2012 Management and Tools C ...
- Dsamain
TechNet 库 Windows Server Windows Server 2008 R2 und Windows Server 2008 Windows Server 命令.参考和工具 Comm ...
随机推荐
- FreeMarker基本语法的使用
参考博客: http://www.cnblogs.com/panchanggui/p/9346574.html https://blog.csdn.net/zyy88886666/article/de ...
- PHP函数:mysql_fetch_assoc指针重置
本文目前主要讨论mysql_fetch_assoc“指针”如何重置的问题 要了解mysql_fetch_assoc,先看看它与mysql_fetch_row和mysql_fetch_array的关系. ...
- I-129表
http://www.uscis.gov/i-129 移民局使用的非移民性质的工作身份申请表(I-129)表格将于下月底正式作废,4月30日之后,公民和移民服务局只接受新的I-129表格. 据了解,非 ...
- 触发OOM杀掉了mysql
中午收到反馈平台所有账号全部无法登录,运维就是苦逼,饭都没吃就跑来处理紧急故障,先自己测试了下确实无法登录进系统,登录服务器检查,发现mysql数据库挂掉了,定位到了原因就赶紧重启mysql吧,结果启 ...
- 国密SM4分组加密算法实现 (C++)
原博客 :http://blog.csdn.net/archimekai/article/details/53095993 密码学的一次课程设计,学习了SM4加密算法,目前应用于无线网安全. SM4分 ...
- linux网卡的配置(解决刚刚安装linux,Xshell连接不上问题)
1.输入用户名和密码 2.cd到网卡文件夹 3.对网卡文件进行编辑 vi ifcfg-eth0 然后 a 进行编辑 然后esc退出,shift+zz保存 4.重启网卡 /etc/init.d/netw ...
- python 补缺收集
[http://www.cnblogs.com/happyframework/p/3255962.html] 1. 高效code 与 不常用的函数用法: #带索引的遍历 , )): print(ind ...
- python实现剑指offer删除链表中重复的节点
题目描述 在一个排序的链表中,存在重复的结点,请删除该链表中重复的结点,重复的结点不保留,返回链表头指针. 例如,链表1->2->3->3->4->4->5 处理后 ...
- 解决Postgresql服务启动又关闭的问题
查看日志发现如下错误消息:%t LOG: could not receive data from client: An operation was attempted on something tha ...
- nginx入门学习步骤(linux)
一.nginx下载(nginx-1.9.9) http://nginx.org/download/ 二.解压到指定文件夹 tar -zxvf 解压缩文件 三.设置配置信息 在nignx解压文件夹内执行 ...