release IP on shutdown

ZerO

Distinguished
Jul 9, 2003
125
0
18,680
Archived from groups: microsoft.public.windowsxp.customize (More info?)

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
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

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

Computer Configuration -> Windows Settings -> Scripts.

Keith

"zero" <zero@this.hi> wrote in message news:Xns9611830111327zerothishi@195.130.132.71...
> 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
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

"zero" <zero@this.hi> wrote in message
news:Xns9611830111327zerothishi@195.130.132.71...
> 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
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

"Keith Miller" <k.miller79@verizon.net> wrote in
news:OsDGd9nIFHA.3336@TK2MSFTNGP10.phx.gbl:

> 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?
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

"zero" <zero@this.hi> wrote in message news:Xns9613CE407FA77zerothishi@195.130.132.72...
> "Keith Miller" <k.miller79@verizon.net> wrote in
> news:OsDGd9nIFHA.3336@TK2MSFTNGP10.phx.gbl:
>
> > 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?

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
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

"Keith Miller" <k.miller79@verizon.net> wrote in
news:#srN1jEJFHA.4028@tk2msftngp13.phx.gbl:

>
> 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
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

you're welcome

"zero" <zero@this.hi> wrote in message news:Xns9617BEB10352zerothishi@195.130.132.72...
> "Keith Miller" <k.miller79@verizon.net> wrote in
> news:#srN1jEJFHA.4028@tk2msftngp13.phx.gbl:
>
> >
> > 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
 

TRENDING THREADS