Shutting down manually

  • Thread starter Pascal Schmidt-Volkmar
  • Start date
P

Pascal Schmidt-Volkmar

Hi there,

I have a .bat file that contains several steps that have to be done before
the system gets shut down. at the end I would like to shut down XP manually.
Is there a command that could be used for that purpose?

Thanks,

Pascal
 
M

Mike Brannigan [MSFT]

Pascal Schmidt-Volkmar said:
Hi there,

I have a .bat file that contains several steps that have to be done before
the system gets shut down. at the end I would like to shut down XP manually.
Is there a command that could be used for that purpose?


You can use the command line tool shutdown .
This tool is part of the Windows Server 2003 Resource Kit tools
see
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en


Alternatively just use a Group Policy Object to implement a Shutdown Script
that runs whenever the machine is shutting down, this avoids having to use
the res kit tool and also ensure that your script is run whenever the
machine is shut down.

--
Regards,

Mike
--
Mike Brannigan [Microsoft]

This posting is provided "AS IS" with no warranties, and confers no
rights

Please note I cannot respond to e-mailed questions, please use these
newsgroups
 
P

Pascal Schmidt-Volkmar

Mike,

How do I setup this Group Policy Object? I have already looked in Users and
Groups but there does not seem to be a setup for that.

Thanks,

Pascal
 
M

Mike Brannigan [MSFT]

If your machines are member of an Active Directory Domain, then you do this
by going to an appropriate OU and placing the Group Policy on it.

For machines not members of an Active Directory you can set the Local policy
on each PC (this may not be appropriate for your environment).
Start ... Run ... mmc
File add/remove snap-in
Add...
Select the Group Policy snapin (Add, Finish, Close, OK)
Then in the GPO editor, Local Computer Policy\Computer Configuration\Windows
Settings\Scripts

Once you have done this you can copy the Local Group Policy to other
machines where you want to implement this from
\%SystemRoot%System32\GroupPolicy

--
Regards,

Mike
--
Mike Brannigan [Microsoft]

This posting is provided "AS IS" with no warranties, and confers no
rights

Please note I cannot respond to e-mailed questions, please use these
newsgroups
 
K

Ken Holt

This works for me in XP Home
defrag c:
shutdown -s
Use Notepad and save it to a folder and shortcut it to the desktop or tray.
If you don't want the defrag, omit it.
Cheers Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top