Page 1 of 1 1
Topic Options
#20793 - 2002-04-29 01:01 AM Need some Assistance
karabin Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 5
Loc: Doylestown, PA
Hello All!

I'm new to this site and kixtart but am really enjoying the power of kixtart and the resources from everyone.

I am a tech at a school, within a pretty big district. This summer we will be changing proxy servers. Our old one will remain operational for a time, so we can "manually" change the ip address on the clients.

And I disagree about manually doing it. Our Network Admin doesn't use kixtart, just batch files. So I hope if I figure out a way to change the settings through a .bat file, he would call it in the client logons and we wouldn't have to do it manually.

I have succesfully made a script to change the setting on a win98 box, but am having a bit of trouble on the nt machines. i am using a 2000 box here to test with full admin privs, just to see if i can change the setting. here is what i have so far,

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyServer"="0.0.0.0:0000"

I am calling the .reg file [above] from a .bat file which will be determining the OS type ex:

IF Windows_NT == %OS% GOTO WINNT
regedit /s proxychange.reg
GOTO END

:WINNT

...still have to figure out!!!

:END

Thanks for any input.

You don't have to be nice either. If I'm going to learn, might as well be the right way first!

Karabin
_________________________
Jason Karabin jason@karbin.org If it ain't broke, always try to fix it

Top
#20794 - 2002-04-29 01:23 AM Re: Need some Assistance
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Welcome to the board. I've never been known to be nice so you needn't scrape off any sugar coating. [Big Grin]

First with regard to the one reg entry, it would be real easy to do it with KiX using WriteValue().

Beware that it is possible to have proxy settings per machine. These would reside in HKLM. If you use the IEAK and AutoConfigProxy feature it would be even easier. You would set it on the server and the clients would update automatically.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#20795 - 2002-04-29 01:30 AM Re: Need some Assistance
karabin Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 5
Loc: Doylestown, PA
here is somemore info on the network and lan

novell servers, one in each school, but will soon be moved to central location.

no windows authentication, only authenticating to the box. They use .bat files through novell to map drives.

and they will not be using zen works, it is in the plans, but not in this year's plans.

thanks for your quick reply.
_________________________
Jason Karabin jason@karbin.org If it ain't broke, always try to fix it

Top
#20796 - 2002-04-29 02:31 AM Re: Need some Assistance
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jason,

It is great that you are working on a Registry import. However, with just a couple of Keys/Values, why not use KEYEXIST (EXISTKEY), ADDKEY, READVALUE, WRITEVALUE methods of Kixtart?

With the import process you posted above, I would do this with say 20-30 values that need to be imported..

Thanks!

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#20797 - 2002-04-29 04:37 PM Re: Need some Assistance
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I don't know about how you have it set up, but I am fairly positive that most users will be able to have the proxy settings changed with default permissions. You just have to be careful about changing policies (like greying out the check box to use proxy settings.)

We are successfully using a .reg that looks like this:

code:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"ProxyHttp1.1"=dword:00000001
"ProxyServer"="icu.internaldomain.org:80"
"ProxyOverride"="*.internaldomain.org;<local>"

It seems to work for NT machines as well... It shouldn't be too hard to convert that to kix:

code:
$internetkey = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
$ok = WriteValue ($internetkey,"MigrateProxy",1,"REG_DWORD")
$ok = WriteValue ($internetkey,"ProxyEnable",1,"REG_DWORD")
$ok = WriteValue ($internetkey,"ProxyHttp1.1",1,"REG_DWORD")
$ok = WriteValue ($internetkey,"ProxyServer","icu.internaldomain.org","REG_SZ")
$ok = WriteValue ($internetkey,"ProxyOverride","*.internaldomain.org;<local>","REG_SZ")

If this doesn't work, it sounds like a permission problem. Also, if the browser is open at the time you run the script, it may not work, either.

Brian

Top
#20798 - 2002-04-29 05:03 PM Re: Need some Assistance
karabin Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 5
Loc: Doylestown, PA
Thanks,

I can see now where i made my mistake on the 2000 machines
_________________________
Jason Karabin jason@karbin.org If it ain't broke, always try to fix it

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.091 seconds in which 0.06 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org