Run batch file at shutdown?

  • Thread starter Thread starter Vance Green
  • Start date Start date
Vance said:
Didn't find any info on whether or not
this is possible in the MSKB...

Hi

For Win2k/WinXP Pro, this can be done by using a Group Policy Computer
(GPO) Configuration Logoff and/or Shutdown script. The GPO can be
activated manually with gpedit.msc even if you are not in a domain.

From the Start menu Run dialog, open: gpedit.msc

for logoff script, under "User Configuration",
open Windows Settings\Scripts (Logon/Logoff)
(double click, Add...).

for shutdown script, under "Computer Configuration",
open Windows Settings\Scripts (Startup/Shutdown)
(double click, Add...).

More info in Tip 2147 in the 'NT Reg Hacks' at http://www.jsiinc.com

JSI Tip 2147. Windows 2000 Startup/Shutdown, Logon/Logoff scripts?
http://www.jsiinc.com/sube/tip2100/rh2147.htm
 
Tx. T-

I'll look into it...

Torgeir Bakken (MVP) said:
Hi

For Win2k/WinXP Pro, this can be done by using a Group Policy Computer
(GPO) Configuration Logoff and/or Shutdown script. The GPO can be
activated manually with gpedit.msc even if you are not in a domain.

From the Start menu Run dialog, open: gpedit.msc

for logoff script, under "User Configuration",
open Windows Settings\Scripts (Logon/Logoff)
(double click, Add...).

for shutdown script, under "Computer Configuration",
open Windows Settings\Scripts (Startup/Shutdown)
(double click, Add...).

More info in Tip 2147 in the 'NT Reg Hacks' at http://www.jsiinc.com

JSI Tip 2147. Windows 2000 Startup/Shutdown, Logon/Logoff scripts?
http://www.jsiinc.com/sube/tip2100/rh2147.htm


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter
 
Back
Top