Αναζήτηση αυτού του ιστολογίου

Σάββατο 2 Ιουνίου 2012

Local Group Policy - Reset to Default

http://www.sevenforums.com/tutorials/214461-local-group-policy-reset-default.html

or


To Reset "Local Group Policy" to Default in a Command Prompt at Boot
1. Open a command prompt at boot.
NOTE: See OPTION ONE at this link for how if needed.

2. In the command prompt, type diskpart and press Enter. (see screenshot below step 7)

3. In the command prompt, type list volume and press Enter. (see screenshot below step 7)

4. Make note of what your Windows OS drive letter is. It is not always C: at boot. (see screenshot below step 7)
NOTE: Mine just happens to be D: at boot.

5. In the command prompt, type exit and press Enter. (see screenshot below step 7)

6. In the command prompt, type the command below and press Enter. (see screenshot below step 7)
NOTE: Substitute D in the command below with your drive letter from step 4 instead.
RD /S /Q "D:\Windows\System32\GroupPolicy"
7. In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute D in the command below with your drive letter from step 4 instead.
RD /S /Q "D:\Windows\System32\GroupPolicyUsers"

Local Group Policy - Reset to Default-cmd-boot.jpg
8. Restart the computer back into Windows.

9. The Local Group Policy Editor has now been reset back to default.


How to Reset Local Group Policy Objects on XP to default settings


After much searching on how to do such a simple task as reset local GPOs back to their defaults, I finally found the real answer. I tried this on Windows XP, although it is said to work for 2000 and 2003 Server as well.
1. If you need to clear IPSec settings and software restriction settings do these two sub-steps, otherwise go on to the second step:
a. reg delete hklm\software\policies\microsoft /f
b. regedit /s "c:\policies.reg" (where c:\policies.reg is the exported hklm\software\policies\microsoft hive of a virgin or target configured machine)
2. Issue this magical command to reset the rest of the GPO settings to their defaults (enter this all on one line):
secedit /configure /db reset /cfg "c:\windows\security\templates\setup security.inf" /overwrite
3. Delete the registry.pol file if it exists:
del c:\windows\system32\grouppolicy\machine\registry.pol
4. Reboot 

Δεν υπάρχουν σχόλια: