Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automaticly run an netsh script on the clients

Status
Not open for further replies.

BLUBBBBBB

Technical User
Mar 16, 2011
1
Hello,

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
 
Do the users have rights to run those commands? If you log into a workstation as a user, can you manually run the script?

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top