Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GPO Problem

Status
Not open for further replies.

crobg

MIS
Jun 12, 2004
140
US
I have a workstation GPO that is set to Persistant and Replace mode. The workstation is now no longer in eDir and I need to clear this policy out. Is there a way to do this? There are a few reg keys that need to be updated but can't becuase of the GPO.

Zenworks 7
Windows XP SP2
Client 4.91 SP 5
 
This is from a script I compiled to do this for me automatically. Change "winnt" to "windows" for XP and above, but the script kinda tells the tale of what needs to be done.

#region --- Delete old GroupPolicy directories ---
DirRemove("C:\WINNT\system32\GROUPPOLICY",1)
DirRemove("C:\WINNT\system32\GROUPPOLICY.WKSCACHE",1)
DirRemove("C:\WINNT\SYSTEM32\GROUPPOLICY.WMORIGINAL",1)
#endregion --- Old GroupPolicy directories are removed ---

#region --- Remove Registry keys ---
RegDelete("HKLM\SOFTWARE\Novell\Workstation Manager\Group Policies\User")
RegDelete("HKLM\SOFTWARE\Novell\Workstation Manager\Group Policies\Workstation")
#endregion --- Registry Keys are removed ---


Basically you remove those directories (DirRemove) and then delete the registry keys (RegDelete) to relinquish control back to the local GPO.

Hope this is clear enough.
 
I also have this note in my script that might help:

Reference Novell TID#10059171 for the manual procedure to clean the GPOs out of the system.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top