View Full Version : Shutting down manually
Pascal Schmidt-Volkmar
December 5th 03, 01:42 AM
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
Mike Brannigan [MSFT]
December 5th 03, 01:42 AM
"Pascal Schmidt-Volkmar" > wrote in message
...
> 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/details.aspx?FamilyID=9d467a69-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
"Pascal Schmidt-Volkmar" > wrote in message
...
> 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
>
>
Pascal Schmidt-Volkmar
December 5th 03, 01:42 AM
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
Mike Brannigan [MSFT]
December 5th 03, 01:42 AM
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
"Pascal Schmidt-Volkmar" > wrote in message
...
> 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
>
>
Tom Porterfield
December 5th 03, 01:42 AM
Mike Brannigan [MSFT] wrote:
> You can use the command line tool shutdown .
> This tool is part of the Windows Server 2003 Resource Kit tools
Shutdown is also included with Windows XP, no need for the resource kit
tools from server 2003. Type shutdown /? at a command prompt for the
list of options.
--
Tom Porterfield
MS-MVP Windows XP & Smart Display
http://mywebpages.comcast.net/tp.porterfield/support
Please post all follows to the newsgroup only
Ken Holt
December 5th 03, 01:44 AM
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
"Pascal Schmidt-Volkmar" > wrote in message
...
> 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
>
>
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.