Tom's Hardware > Forum > Windows XP > Configuration & Customize > release IP on shutdown

release IP on shutdown

Forum Windows XP : Configuration & Customize - release IP on shutdown

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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

Sponsored Links
Register or log in to remove.

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

Reply to Anonymous
- 0 +

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

Reply to george
- 0 +

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?

Reply to ZerO

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

Reply to Anonymous
- 0 +

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

Reply to 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

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Configuration & Customize > release IP on shutdown
Go to:

There are 1048 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them