superyoge Posted December 15, 2010 Share 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. Link to comment Share on other sites More sharing options...
superyoge Posted December 15, 2010 Author Share Posted December 15, 2010 bump Link to comment Share on other sites More sharing options...
Juvigy Posted December 15, 2010 Share Posted December 15, 2010 Identify the registry changes and implement them. With RegWrite() Link to comment Share on other sites More sharing options...
iamtheky Posted December 15, 2010 Share 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 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now