system shutdown script hangs on 'net use'

Microsoft Windows xp professional editio...
April 15, 2010 at 13:49:23
Specs: Windows XP
I have written a shutdown script which creates a file, and then tries to run 'net use' to map a drive on another machine so that the file can be saved there. The script works fine from the command line, but as a script called at shutdown time by the system, it fails on the 'net use'. Why? And is there something I can do about it?

See More: system shutdown script hangs on net use

Report •

April 16, 2010 at 03:27:20
Can u post the script? perhaps we can look into it.

Report •

April 16, 2010 at 04:09:34
When you shutdown the computer, the network connection is one of the first things to shutdown. You'd do better to run the script and let it do its thing, before calling the shutdown command (that you'll add to your script). Make sure the shutdown command isn't called until all other operations are completed.

Please let us know if you found someone's advice to be helpful.

Report •

April 20, 2010 at 07:32:31
The knowledge that the network gets shutdown first is exactly what I was looking for. I kind of figured that was the case, but wanted some assurance.

The suggestion that I write a shutdown script is a good one - I will do that instead of trying to automate the shutdown.

Thanks. Perfect response.

Report •

Related Solutions

April 20, 2010 at 07:45:16
I would do it in the Logoff Script instead. I currently have a logoff script that backsup the PST files and all of the Documents and Settings docs for every user and I did it through the logoff script because if fires on shutdown too.

Report •

Ask Question