|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| 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 |
| |||
| 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] |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |