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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ipconfig /release at shutdown

Status
Not open for further replies.

RedTech

MIS
Feb 13, 2002
142
US
Buddies... Got 1 for you...

Im looking for the way to launch a bat file on shutdown in win2k. I keep having connectivity issues with our laptop users. Either their nic retains the subnet of the last office they were at to our shiva client retaining the ACHP address.

I remember stumbling upon (providing my memory still serves me) a reghack that allowed you to enter the path to a file to run upon shutdown? Any clue? Thanks
 
Hi Red
I am interested to know how you did this. Please let us know

thanks
 
1) Write a script in any language the OS supports. In my case a .bat script:

@echo off
rem Release IP configuration during shutdown
ipconfig /release


2) Save the script in folder WINNT/system32/GroupPolicy/Machine/Scripts/Shutdown/

3) Run gpedit.mmc which can be found in the directory MyComputer/WINNT/system32/

4) Go to ComputerConfiguration/WindowSettings/Scripts (Startup/Shutdown) and doubleclick Shutdown. A popup window appears where you add your script (browse).

Scripts can be run either for computer configuration during startup/shutdown or user configuration during logon/logoff.

Detailed info can be found here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top