Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-07-2009, 09:40 AM
mike2288
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-07-2009, 09:40 AM
  #2 (permalink)  
Old 11-07-2009, 10:20 AM
Pegasus [MVP]
Newsgroup Contributor
 
Posts: n/a
Re: Windows Logoff and Shutdown scipts


"mike2288" <mike2288@discussions.microsoft.com> wrote in message
news:73F87CD4-A722-4997-B054-5B58CBE7D81A@microsoft.com...
> 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]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logoff/Shutdown SJB Windows XP 2 05-20-2009 11:00 PM
Logoff, reboot or shutdown Just D. Windows XP 6 03-23-2009 02:43 PM
logoff/restart causes shutdown Scott Windows XP 1 12-22-2007 10:50 AM
Shutdown after logoff Jim Brook Windows Vista 2 09-19-2007 01:18 AM
Explorer.exe crash on shutdown, logoff, etc... Brad Syputa Windows Vista 3 04-01-2007 01:15 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 12:45 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0