1.

Solve : How to create the script to remote shutdown a file server?

Answer»

I have successfully created a command line INSTRUCTION to shut down my file server.

shutdown -m \\computername -s -t 10
will shutdown the dos PC with the name 'computername' after waiting 10 seconds

I would like to run this command after my nightly backup has completed.

I tried to create a file with the line as a bat file, but it will not shutdown the remote server. I cannot see it is doing anything

Some pointers would be greatly appreciated

FritsFor DEBUGGING put a pause statement above and below the shutdown command.

If it doesn't reach there then you are using a batch file in your code and not call ing it.

If it does reach there then you will see any error message.The user that is executing the script has to have permissions on the remote COMPUTER to shutdown the remote computer. This would mean you either have the same user name and password on both computers or you are a domain admin and the domain admins are part of a local GROUP on the remote computer.



Discussion

No Comment Found