I have the following code, I think lines 1-3 and 9 are working okay. I have to implement these settings via kixtart for our Citrix server users, the bosses don't want me to use exported/imported reg keys or Group policy.
Basically, I have to set users proxy settings, set their home page, disable their ability to change proxy settings (under LAN settings) in internet options. Set IE cache folder sizes, stop the Internet
Connection Wizard icon appearing on their desktop (or if they launch IE) after logging in. Finally prevent the configure your server wizard starting up/appearing when they log in (domain users have local admin rights - a fix for two old programs we use).
Code:
writevalue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "proxy:80", "REG_SZ")
writevalue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "1", "REG_DWORD")
writevalue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyOverride", "127.0.0.1;<local>", "REG_SZ")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content", "CacheLimit", "10000", "REG_DWORD")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Cookies", "CacheLimit", "10000", "REG_DWORD")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\History", "Cachelimit", "20000", "REG_DWORD")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Setup\Welcome", "srvwiz", "0", "REG_DWORD")
writevalue("HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Internet Explorer\Control Panel", "Proxy", "1", "REG_DWORD")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "http://intranet", "REG_SZ")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard","DesktopChanged","1","REG_DWORD")
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard","Completed","1","REG_BINARY")
As you may or may not have guessed, I am very new at writing scripts and would appreciate any help.
Thanks.