
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2012 09:31 PM
Here is a custom action that will delete a local workstation's Group Policy cache. This is useful when a machine gets out of synch with the Domain Controllers and has GPO errors in the event logs. This will work on Windows XP and Windows 7 and it does require psexec.exe.
Custom Action
DeleteGPOCache.bat
Custom Action
{actionpath}psexec.exe \\{computer} -u administrator -p YOURLOCALADMINPASSWORD /c {actionpath}DeleteGPOCache.bat
DeleteGPOCache.bat
DEL /S /F /Q "%ALLUSERSPROFILE%\Application Data\Microsoft\Group Policy\History\*.*"
gpupdate /force
Labels:
- Labels:
-
Custom Actions
0 REPLIES 0
