Automaticly run an netsh script on the client

March 17, 2011 at 00:35:06
Specs: windows xp

I’m a beginner in using windows server 2003.
I have the Problem, that 60 computers should have dhcp activated and not the fixed ip.

Therefore i have made know an netsh script, witch is changing automaticly the network configuration to dhcp.

This are the commands in the .bat file:
netshint ip set address name=”Local Area Connection” source=dhcp
netshint ip set dns name=”Local Area Connection” source=dhcp

The script is working nicely and without problems, if I start in manually as an administrator on the computers.

Know i want to make it with the active directory users and computers.
There is under the Domain, if i make a right click, an go an properties the Group Policy.
Under which I have the user configuration, windows settings, scripts.
And there under login I can place a script.

I thought, this script will be started when a user is logging in.

But this is not working, I tried it for a several times and it hadn't worked.

Does someone of you know where what I’m doing wrong?

Greetings Alexander

See More: Automaticly run an netsh script on the client

March 17, 2011 at 05:27:35

The network configuration scripts wont run on startup..


Report •

March 17, 2011 at 20:19:16
may be through GPO you can copy the script to each local system's all users startup folder and then on next reboot/logon it should run..

However be aware that running this script at login time may cause other network related polices/things to stop working for a moment...

Subhash Chandra.

Report •
Related Solutions

Ask Question