Jump to content

Recommended Posts

Posted

okay, so i've been needing help on how to begin or make a script that will change the values in the local computer policy or group policy i think they're the same thing. its a lot of values that need to be changed and i do it over and over again for different operating systems like server 03 or 08 windows xp ect. so anyone who could offer help i'd appreciate.

Posted

zip up the contents of the configured grouppolicy folders and unpack them onto the destination machine of choice. Then restart.

Example would need winzip installed to the default location.

If @OSVersion = "WIN_2003" Then 

FileInstall("GroupPolicy2003.zip", "c:\temp1\")      
DirRemove("C:\windows\system32\GroupPolicy", 1)     
RunWait('C:\Program Files\WinZip\WINZIP32.EXE -min -e -o "c:\temp1\GroupPolicy2003.zip" "C:\windows\system32\GroupPolicy"')

ElseIf @OSVersion = "WIN_2008" Then 

FileInstall("GroupPolicy2008.zip", "c:\temp1\")      
DirRemove("C:\windows\system32\GroupPolicy", 1)     
RunWait('C:\Program Files\WinZip\WINZIP32.EXE -min -e -o "c:\temp1\GroupPolicy2008.zip" "C:\windows\system32\GroupPolicy"')
EndIf

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...