PCWorld Forums

PCWorld Forums: how to use remote shutdown command in vista - PCWorld Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to use remote shutdown command in vista

#1 User is offline   blastedtoys 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 08

Posted 25 June 2008 - 06:18 AM

I've got 2 computers with vista. They are both on the same LAN network but when i use the shutdown -m computername -s command nothing happens.. What can i be doing wrong??:|
0

#2 User is offline   piyushsingh 

  • Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,012
  • Joined: 21-July 07
  • Location:India

Posted 25 June 2008 - 07:51 AM

blastedtoys said:


I've got 2 computers with vista. They are both on the same LAN network but when i use the shutdown -m computername -s command nothing happens.. What can i be doing wrong??:|




use the administrative command prompt rather than a normal one. Type cmd in vista start menu , right click and run as administrator to get an adminstrative command prompt. Then write the shutdown command.
0

#3 User is offline   blastedtoys 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 08

Posted 25 June 2008 - 07:56 AM

I have been doing that.. I heard somewhere that the username and password on the one computer had to be the same as the username and password on the other computer so should i just go to controls and change my username and password so they are the same?
0

#4 User is offline   piyushsingh 

  • Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,012
  • Joined: 21-July 07
  • Location:India

Posted 25 June 2008 - 08:15 AM

I never knew about the username & passwords being same. You can try that, but Are you getting any error message or is it just blank after hitting enter ?
0

#5 User is offline   BAMT 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 270
  • Joined: 25-June 08
  • Location:United States

Posted 25 June 2008 - 09:01 AM

You have to authenticate as the administrator on the remote computer in the command. Try 'shutdown /?' or try a 'net user computernameusername /password ' in a .bat file before the shutdown command. Check on the /Password, though, as I'm on Linux right now.
0

#6 User is offline   blastedtoys 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 08

Posted 25 June 2008 - 11:43 AM

ok how do i authenticate myself as adminstrator?can't seem to get the 'net user computernameusername /password ' thing to work... I will just download some software then i think this might take along time for me to solve.:)
0

#7 User is offline   piyushsingh 

  • Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,012
  • Joined: 21-July 07
  • Location:India

Posted 25 June 2008 - 11:53 AM

btw - you can also shut down from the remote desktop. I always do it that way. Connect to the 2nd pc using remote desktop and open a command there. Then shutdown -s will turn that off and the remote connection will disconnect automatically.
The above method should also work , i cant relate it to any such that the password has to be same.
0

#8 User is offline   blastedtoys 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 08

Posted 25 June 2008 - 11:57 AM

ok so you are saying the i just have to be using the same username but not the same password? Edit: that i don't need a password on my computers?
0

#9 User is offline   stnickt 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 16-January 10

Posted 16 January 2010 - 02:46 PM

View Postblastedtoys, on 25 June 2008 - 11:57 AM, said:

ok so you are saying the i just have to be using the same username but not the same password? Edit: that i don't need a password on my computers?



I have been using the following syntax with the same issues
bother server and client usernames and passwords are the same

from client cmd (ran as admin):
host machine name (trying to be shutdown": "server"

Win R, cmd
runas "/user:server\login" "shutdown -m \\server -f -s -t 05"
Enter the password for server\login: (typed in pw then hit enter)

it then opens a second cmd prompt which is blank, then closes...but nothing happens on server
0

#10 User is offline   LiveBrianD 

  • Elite
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 11,164
  • Joined: 31-December 09
  • Location:Right behind you... made you look! :D

Posted 24 January 2010 - 01:22 PM

View Postblastedtoys, on 25 June 2008 - 06:18 AM, said:

I've got 2 computers with vista. They are both on the same LAN network but when i use the shutdown -m computername -s command nothing happens.. What can i be doing wrong??:|


It looks like you are using the wrong syntax(s) on it. It is actually this:

shutdown -s -m \\otherpc -t 30 -c "Your message here"

You can replace -s with -r for restart. Replace otherpc with the actual name, but keep the \\ before it. The -t 30 is optional (if not specified 30 seconds will be used), and is in seconds. -c "Your message here" is also optional, but if you choose to use it make sure you keep the double quotes ", just replace Your message here with whatever you want.
Spoiler
"The Internet will be used for all kinds of spurious things, including fake quotes from smart people." -Albert Einstein
Need a Windows ISO image?
0

#11 User is offline   GMitch 

  • Newbie
  • Pip
  • Group: New Member
  • Posts: 1
  • Joined: 20-November 12

Posted 20 November 2012 - 05:54 PM

View Postblastedtoys, on 25 June 2008 - 11:43 AM, said:

ok how do i authenticate myself as adminstrator?can't seem to get the 'net user computernameusername /password ' thing to work... I will just download some software then i think this might take along time for me to solve.:)


That didn't work because the person who brought it up made a bunch of typos. This should work: 'net use \\(computername)\IPC$ (password) /u:(computername)\(username)'

if you get an error that you can't connect to the same resource with multiple accounts, then 'net use' will tell you what is already mounted, and 'net use [whatever is mounted, like "\\[computername]\[share]"] /delete' will take care of that, then try the first command again.

After that, run 'shutdown /i' and you can pick your options in a nice fancy window. I successfully used this just now to shut down a remote machine on our network that was giving me fits. Or try to build the correct command line for that, which I suspect is your other problem. Every time I have ever used the shutdown command, I must use '/' switches, not '-' switches, it ignores the '-' ones in my experience, which would fit your statement that it "does nothing," as opposed to the problem I was having when I googled up this thread, which was "Access Denied" errors. Your idea about using "runas" might also work if you use '/' switches. (That is, maybe try 'runas "/user:server\login" "shutdown /m \\server /f /s /t 05"')

Thanks, other thread folks, for giving me the idea of mounting with net, I was a little surprised that there was no direct command switch to authenticate (at least 'shutdown /?' doesn't list anything about authenticating with the remote computer.)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users