#76539 - 2003-08-29 09:56 PM
Can I get some help ASAP, please!!!
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
I am stupmed here guys, and I am hoping someone can help. We are in the process of changing the IP address of our proxy server here are our office. Since we are doing this, we need to change the IP address stored in Internet Explorer for that proxy. I have a script written that should change it, but for some reason it doesnt like it. Can you guys please help ASAP. (Script pasted below)
Thanks
aaron
;Reset proxy settings $key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" WRITEVALUE(key$,"ProxyEnable","1","REG_DWORD") WRITEVALUE(key$,"ProxyServer","10.0.0.13:3129","REG_SZ") WRITEVALUE($key, "ProxyOverride", "", "REG_SZ")
|
|
Top
|
|
|
|
#76540 - 2003-08-29 09:59 PM
Re: Can I get some help ASAP, please!!!
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Aaron,
Welcome to the board..
Be sure all of your variables read - $key
Kent
|
|
Top
|
|
|
|
#76541 - 2003-08-29 10:08 PM
Re: Can I get some help ASAP, please!!!
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
Thanks for your message, I am very new to KIX, expecially to writing new code for them. I can edit the existing code just fine. Which varriables are you talking about? What I posted is the script in it's entirety. What am i missing?
thanks for your continuing help!!
aaron
|
|
Top
|
|
|
|
#76542 - 2003-08-29 10:11 PM
Re: Can I get some help ASAP, please!!!
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Aaron,
You have -
code:
;Reset proxy settings $key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" WRITEVALUE(key$,"ProxyEnable","1","REG_DWORD") WRITEVALUE(key$,"ProxyServer","10.0.0.13:3129","REG_SZ") WRITEVALUE($key, "ProxyOverride", "", "REG_SZ")
Really, it needs to be -
code:
;Reset proxy settings $key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" $RC=WRITEVALUE($key,"ProxyEnable","1","REG_DWORD") $RC=WRITEVALUE($key,"ProxyServer","10.0.0.13:3129","REG_SZ") $RC=WRITEVALUE($key, "ProxyOverride", "", "REG_SZ")
Note the use of $RC to suppress the 0's and 1's..
Kent [ 29. August 2003, 22:11: Message edited by: kdyer ]
|
|
Top
|
|
|
|
#76543 - 2003-08-29 10:12 PM
Re: Can I get some help ASAP, please!!!
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
Thank you. Right after i posted my reply, I went back and looked at my code. Plain and simple, it was sloppy code writing, and even sloppier code proofing. Thanks for the help, Everything is working wonderfully now.
DUH!!!
Aaron
|
|
Top
|
|
|
|
#76544 - 2003-08-29 11:30 PM
Re: Can I get some help ASAP, please!!!
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
there is also a UDF that will do this for you as well.
|
|
Top
|
|
|
|
#76547 - 2003-09-02 05:53 AM
Re: Can I get some help ASAP, please!!!
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Correct me if I am wrong.. Can't this be pushed using a GPO?
Kent
|
|
Top
|
|
|
|
#76548 - 2003-09-08 03:10 PM
Re: Can I get some help ASAP, please!!!
|
Joe Parlas
Fresh Scripter
Registered: 2001-12-26
Posts: 9
|
That's what I do, I push this out with a GPO with additional parameters which do not allow our users from changing the configurations. GPO's only work with WIN2K and above clients and is dependent on Active Directory. Lot of shops are still on NT4 Domains....
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 756 anonymous users online.
|
|
|