Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Remote shutdown with shutdown.exe credentials?

  • 09-01-2013 07:07PM
    #1
    Registered Users, Registered Users 2 Posts: 7,544 ✭✭✭


    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