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!

Automate the "Release ALL/Renew ALL" in a script 1

Status
Not open for further replies.

Hooze

IS-IT--Management
May 2, 2001
2
US
Okay guys!

We're getting ready to implement a new IP scheme here and we have over 250 users on DHCP that my crew is going to have to visit and do a "release all" "renew all" on to change their IP addresses.

I thought I could add a command or two to their login script to do it automatically but I can't seem to get it to work on the "test" machine.

I've got a Windows 95 client and a login file called test9x.bat that runs for my test user when he logs in.

The command I put in the .bat file is winipcfg /release_all
followed by winipcfg /renew_all

It's not working! Can someone show me a better way or tell me what I'm doing wrong?!?

Thanks!

Hooze
 
If you are already using DHCP, simply set the expiry to 1 hour, restart DHCP service,
set up DHCP for the new IP range
When you want to go to the new range :
Wait until the evening, when everybody is logged off
(ask everybody to shut down the client
stop DHCP
deactivate the old range (remove it if possible)
change the server's IP address if that's needed
restart the server, and activate the new scope
Normally, you will have only a very few computers to release/renew in the morning... Peter Van Eeckhoutte
peter.ve@pandora.be

 
Good call - very creative! - Bill

"You can get anything you want out of life, if you'll just help enough other people get what they want" - Zig Ziglar
 
Well, I learned a lot by reading posts from people like yourself... all credits go to you guys !
(and maybe a little bit of experience from myself... )
:)

Peter Van Eeckhoutte
peter.ve@pandora.be

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top