Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Remote shutdown with shutdown.exe credentials?

Options
  • 09-01-2013 7:07pm
    #1
    Registered Users Posts: 7,498 ✭✭✭


    Every now and then at work i need to remotely reboot a server. I use the following command line:
    shutdown -m \\ComputerName -r -f -t 0

    However this wont work unless my current username has rights on the remote computer.

    I get around this my mapping a network drive which prompts me to enter my credentials for the remote server and then the shutdown command will work as the windows system now as stored come credentials for the remote server.

    Now the questions is.... How can i tell a command line program to use certain credentials when attempting a command?
    I dont like having to map a drive every time i do this.


Comments

Advertisement