Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Windows shutdown command not working anymore


  • Please log in to reply
7 replies to this topic

#1 FrankOtheMountaiN

FrankOtheMountaiN

  • Members
  • 514 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:01:10 AM

Posted 24 August 2011 - 09:14 PM

Hello, I used to use some bat files to shutdown or restart other computers on my network and they worked fine. I cannot figure out why this doesn't work anymore.

Example of the shutdown bat file:
shutdown -s -f -m \\nameofPC -t 01 ip address can be used instead of PC name here also.

I have programs that can do this also, but it's just buggin' me why it stopped working. Any ideas?

Edited by FrankOtheMountaiN, 24 August 2011 - 09:21 PM.


Frank O' The Mountain
Doing more stupid before 5AM than most people do all day.


BC AdBot (Login to Remove)

 


#2 cursindaily

cursindaily

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:01:10 AM

Posted 07 September 2011 - 03:16 PM

I am having this same issue. When I open a command prompt and invoke the shutdown command manually it works fine, but I have a backup I run nightly which runs a shutdown after it has finished, and for the past week or so it hasn't been working. The backup log shows that the shutdown command is issued successfully but the computer is always on when I get back to it in the morning.

This began the day I installed a few windows updates, so I'm assuming one of them is the culprit.

#3 FrankOtheMountaiN

FrankOtheMountaiN
  • Topic Starter

  • Members
  • 514 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:01:10 AM

Posted 07 September 2011 - 03:21 PM

mmmmm. Wish I knew which one. It's been like this for at least 5 months.

Edited by FrankOtheMountaiN, 07 September 2011 - 03:22 PM.


Frank O' The Mountain
Doing more stupid before 5AM than most people do all day.


#4 cursindaily

cursindaily

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:01:10 AM

Posted 13 September 2011 - 12:06 PM

Surely we aren't the only 2 with this problem?

#5 hamluis

hamluis

    Moderator


  • Moderator
  • 55,572 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:01:10 AM

Posted 13 September 2011 - 12:37 PM

How about deleting said file...and replacing it with a new one? It could be damaged.

Louis

#6 FrankOtheMountaiN

FrankOtheMountaiN
  • Topic Starter

  • Members
  • 514 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:01:10 AM

Posted 13 September 2011 - 12:44 PM

I tried new files, and new methods to no avail. Seems it was deemed a security risk I guess. I don't mind taking that risk.
I have some older PCs that were not updated in a long time. I will do a test soon, and maybe figure out which update it is.

Frank O' The Mountain
Doing more stupid before 5AM than most people do all day.


#7 FrankOtheMountaiN

FrankOtheMountaiN
  • Topic Starter

  • Members
  • 514 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:01:10 AM

Posted 23 September 2011 - 10:40 PM

Whew, after a lot of research on the internet, I think I figured it out. Fill in the following with your own data:


Open a cmd prompt and type this:
NET USE \\NAMEOFREMOTECOMPUTER\IPC$ REMOTECOMPUTERPASSWORD /USER:REMOTECOMPUTERUSERNAME
You should get a "command successful" dialog. Close cmd. You have to do this one time on each of the PCs you wish to reboot or shutdown remotely.

Now you can use your old bat files.....to restart remote pc:
shutdown -r -f -m \\remotecomputername -t 00

& to shut down remote pc:
shutdown -s -f -m \\remotecomputername-GX270 -t 00

I thought you would have to do the "netuse" thing every time, but it seems to authenticate after one shot.
I am trying to make a bat file that will authenticate AND run the restart all in one click, but didn't get it right yet.

Update, when I tried next morning after PCs shut down for awhile, it doesn't work anymore intil you reauthenticate again. Must be a way to get it all in one command bat file.

Edited by FrankOtheMountaiN, 24 September 2011 - 01:03 PM.


Frank O' The Mountain
Doing more stupid before 5AM than most people do all day.


#8 FrankOtheMountaiN

FrankOtheMountaiN
  • Topic Starter

  • Members
  • 514 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:01:10 AM

Posted 24 September 2011 - 02:33 PM

Alright, you need to make a bat that authenticates and then runs the command. I put a pause in the middle so I can see it working.

NET USE \\ComputerName\IPC$ Password /USER:UserName
PING 1.1.1.1 -n 1 -w 2000 >NUL
shutdown -s -f -m \\ComputerName -t 00

That's it. Above it for a shutdown. For restart, change the "-s" to "-r".

Edited by FrankOtheMountaiN, 24 September 2011 - 02:34 PM.


Frank O' The Mountain
Doing more stupid before 5AM than most people do all day.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users