A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Windows Logoff and Shutdown scipts



 
 
Thread Tools Display Modes
  #1  
Old November 7th 09, 05:30 PM posted to microsoft.public.windowsxp.general
mike2288
external usenet poster
 
Posts: 2
Default Windows Logoff and Shutdown scipts

Hi, First of all i would like to let you know im new to MMC scripts, (if
thats what you refer them to) Basically im trying to ask windows to
automatically perform Scandisk and Defrag through MMC scripts, when i run the
batch files ive written they perform as i want them to,

but i have used MMC and started a new console then ive added a new snap-in (
Snap-ins added to: Console root )
then clicked add.. Group Policy Object Editor, Group Policy Object = Local
computer then finish, close the dialog box click ok then drill down.

Local computer Policy Computer Configuration Windows settings Scripts
Startup and shutdown

then i open the shutdown script properties in which i have added the Defrag
and scandisk scripts then saved as console1 and ive changed Run shutdown
scripts visible to enable to be able to view them when they start

Then nothing happens at all its like they dont exist and i dont know how to
assign them to to the computer when its shuts down

if anyone can help to see if i havent done something correct it would be
appreciated, Thanks for reading, Mike
Ads
  #2  
Old November 7th 09, 06:11 PM posted to microsoft.public.windowsxp.general
Pegasus [MVP]
external usenet poster
 
Posts: 2,361
Default Windows Logoff and Shutdown scipts


"mike2288" wrote in message
...
Hi, First of all i would like to let you know im new to MMC scripts, (if
thats what you refer them to) Basically im trying to ask windows to
automatically perform Scandisk and Defrag through MMC scripts, when i run
the
batch files ive written they perform as i want them to,

but i have used MMC and started a new console then ive added a new snap-in
(
Snap-ins added to: Console root )
then clicked add.. Group Policy Object Editor, Group Policy Object = Local
computer then finish, close the dialog box click ok then drill down.

Local computer Policy Computer Configuration Windows settings Scripts
Startup and shutdown

then i open the shutdown script properties in which i have added the
Defrag
and scandisk scripts then saved as console1 and ive changed Run shutdown
scripts visible to enable to be able to view them when they start

Then nothing happens at all its like they dont exist and i dont know how
to
assign them to to the computer when its shuts down

if anyone can help to see if i havent done something correct it would be
appreciated, Thanks for reading, Mike


The policy you used allows you to run "shutdown" scripts. It says nothing
about "logoff" scripts. The scripts must reside in the folder
C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Sh utdown. Why they do not
work for you is hard to say unless you post them here. A good way to debug
them is to make them really, really simple, e.g. like so:

@echo off
echo %UserName% %date% %time% c:\Mike.txt
[add your own code here]


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 05:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.