Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Remote shutdown with shutdown.exe credentials?

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


    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