To continue reading for free, register below or login
To read more you must become a member of SearchWindowsServer.com
');
// -->

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.
|