Dcgpofix command in Windows
The dcgpofix command recreates the default Group Policy Objects (GPO) for a domain. For an example of how to use this command, please see the Example below.
Syntax command dcgpofix
DCGPOFix [/ignoreschema] [/target: {Domain | DC | Both}] [/?]
Parameters
Parameters Description / ignoreschema Ignore the version of Active Directory schema when you run this command. Otherwise, this command only works on the same schema version as the Windows version in which the command is transmitted. / target {Domain DC /? Show help at the command prompt.Note
- The dcgpofix command is available in Windows Server 2008 R2 and Windows Server 2008, except for 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.
For example
Restore the Default Domain Policy GPO to its original state. You will lose any changes you have made to this GPO. The best way is to configure the Default Domain Policy GPO only to manage the default Account Policies, Password Policy, Account Lockout Policy, and Kerberos Policy settings. In this example, you ignore the version of the Active Directory schema so that the dcgpofix command is not limited to the same schema as the Windows version, in which the command is moved.
dcgpofix /ignoreschema /target:Domain
Restore Default Domain Controllers Policy GPO to its original state. You will lose any changes you have made to this GPO. The best way is to configure Default Domain Controllers Policy GPO only to set user rights and test policies. In this example, you ignore the version of the Active Directory schema so that the dcgpofix command is not limited to the same schema as the Windows version, in which the command is moved.
dcgpofix /ignoreschema /target:DC
See more:
- The dfsrmig command in Windows
- The date command in Windows
- Cscript command in Windows
You should read it
May be interested
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
- The cacls command in Windowsthe cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.