superyoge 0 Posted December 15, 2010 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. Share this post Link to post Share on other sites
Juvigy 49 Posted December 15, 2010 Identify the registry changes and implement them. With RegWrite() Share this post Link to post Share on other sites
iamtheky 927 Posted December 15, 2010 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 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Share this post Link to post Share on other sites