Skip to content

Instantly share code, notes, and snippets.

@awead
Created October 30, 2012 17:04
Show Gist options
  • Save awead/3981554 to your computer and use it in GitHub Desktop.
Save awead/3981554 to your computer and use it in GitHub Desktop.
Copy the %Windir%\System32\GroupPolicy (This is a hidden folder, so unhide it first) contents to C:\GroupPolicy (You'll need to create this folder).
Then extract the Security Settings to an inf by running the following command... secedit /export /cfg C:\Security.inf. You now have the needed files to transfer to the new machine.
Bring those files to the new machine and do the following... Overwrite the contents of %Windir%\System32\GroupPolicy (Make a backup of this folder first) with the contents from the other machine.
If these machines are XP import the Security.inf from the other machine by doing the following... Copy the Security.inf to the %Windir%\repair.
Run the following command. secedit /configure /cfg %Windir%\repair\security.inf /db secsetup.sdb /verbose. Restart the machine. That's it for XP.
If these machines are Windows 7disable UAC first, then copy the Security.inf to %Windir%\inf and run the following command: secedit /configure /cfg %Windir%\inf\Security.inf /db defltbase.sdb /verbose. Restart the machine. That's it for 7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment