Home > Ask the Windows Server Experts > Archive: Windows Desktop Management Questions & Answers > Shutdown scripts written for file backup not working
Ask The Windows Server Expert: Questions & Answers
EMAIL THIS

Shutdown scripts written for file backup not working

Serdar Yegulalp EXPERT RESPONSE FROM: Serdar Yegulalp

Pose a Question
Other Windows Server Categories
Meet all Windows Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 22 February 2006
I have created a batch file to back up some files from one directory to another: "XCOPY /Y C:SOURCE *.* C:DEST *.*" I've used the gpeditor to add it as a shutdown script and although the shutdown window indicates it is running the shutdown scripts, it doesn't work. However it works if I double-click it. Any idea what might be happening?


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Archive: Windows Desktop Management
Can I change network settings on the fly?
How FAT and NFTS differ
SMS installer won't work with 64-bit Vista's HKLM Registry key
Use RoboCopy to copy files from crashed hard disk drives
Give domain users permission to do disk defragmentation locally
How can I restore a disabled Administrator account?
Add domain group to local admins group on XP workstations at one time
Why does Explorer crash so frequently?
I lost my Windows XP product key
Rename multiple computers programmatically

Microsoft Windows Data Backup and Protection
Avoid the big mistakes when backing up virtual servers
Are security concerns over cloud computing unfounded?
How to configure backups and perform restores in Windows Server 2008
When to use VM backups versus snapshots in Hyper-V
Microsoft Hyper-V: Best practices for performance, backups and management
Working with snapshots in Microsoft Hyper-V
Self-healing NTFS keeps admins one step ahead of data corruption
The efficacy of backup-as-a-service solutions
Using WBAdmin to create backups in Windows Server 2008
Breaking down the Windows Server Backup tool for Windows 2008
Microsoft Windows Data Backup and Protection Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
cold/warm/hot server  (SearchWindowsServer.com)
Dolly  (SearchWindowsServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


It sounds like the problem may be with the policy and not the script itself. I'd start by using GPRESULT to figure out which GPOs have scripts set to run, and figure out the GUID of each GPO using the details in Microsoft Knowledge Base article 216359.

Next I'd look in the folder for each GPO and make sure that the scripts in question are getting replicated from there correctly. One common caveat with shutdown scripts and permissions is that the script has to be something the system account can run (it doesn't run as the Administrator). So make sure the script itself has the proper permissions to do so.

Also, if you're trying to copy from or to a server across a share, you'll probably need to specify a full UNC path (serversharefile.fil) or it may fail silently. If you're fairly sure the script is running, add some kind of diagnostic to the start of the script (i.e., an echo command to a local file, or something like that) to see if it's running and maybe failing because of something you hadn't foreseen.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Server Solutions - Intel Hardware Solutions
HomeTopicsBlogsITKnowledge ExchangeTipsNewsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts