release IP on shutdown

  • Thread starter Thread starter zero
  • Start date Start date
Z

zero

Hi everyone,

I have a dual boot system with windows xp pro and linux (fedora). To
switch from windows to linux I have to reboot, but if I want to have
internet access under linux I have to release the IP before rebooting. I
have created a batch file with the lines

shutdown -r -t 5
ipconfig /release

which does the trick nicely. However, I would prefer doing this
automatically. I thought about a logoff script, but I don't want it to
be run every time someone logs off, only when the system shuts down or
reboots.
An additional problem is that I am the only one with admin rights on xp,
so the other users cannot use the shutdown and ipconfig commands. So
when someone else shuts down the system I have to log in first just to
run the batch file.

Does someone know of a solution for this?

TIA

zero
 
Group policy editor allows you to specify startup/shutdown scripts under:

Computer Configuration -> Windows Settings -> Scripts.

Keith
 
zero said:
Hi everyone,

I have a dual boot system with windows xp pro and linux (fedora). To
switch from windows to linux I have to reboot, but if I want to have
internet access under linux I have to release the IP before rebooting. I
have created a batch file with the lines

shutdown -r -t 5
ipconfig /release

which does the trick nicely. However, I would prefer doing this
automatically. I thought about a logoff script, but I don't want it to
be run every time someone logs off, only when the system shuts down or
reboots.
An additional problem is that I am the only one with admin rights on xp,
so the other users cannot use the shutdown and ipconfig commands. So
when someone else shuts down the system I have to log in first just to
run the batch file.

Does someone know of a solution for this?

TIA

zero

Although the suggestion for using a Shutdown script will release your IP
address for XP that shouldnot present you any problems when rebooting into
Linux on a dual boot system. When Linux is up and running it has no knowlege
whatsoever of anything configured in the XP system.
You must have some sort of different problem, nothing te do with XP.

george
 
Group policy editor allows you to specify startup/shutdown scripts
under:

Computer Configuration -> Windows Settings -> Scripts.

Keith

Thanks, I didn't realize shutdown scripts are located somewhere else :)

What language do the scripts require? Can I just use the batch file?
 
zero said:
Thanks, I didn't realize shutdown scripts are located somewhere else :)

What language do the scripts require? Can I just use the batch file?

I think you can use the batch file. I use an .exe file for my shutdown script. Click the 'add' button, then browse, the open file dialog uses a *.* mask, so it doesn't seem to be wanting a particular file type.

Try it and let us know! :)

Keith
 
I think you can use the batch file. I use an .exe file for my shutdown
script. Click the 'add' button, then browse, the open file dialog uses
a *.* mask, so it doesn't seem to be wanting a particular file type.

Try it and let us know! :)

Keith

yep the batch file works fine :-) thanks for your help!

zero
 
Back
Top