[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Batch File commands

I want to shutdown a bunch of servers.  So I run the shutdown command, but it issues the command, and then waits for a response.
I would like the batch file to issue the shutdown command, and continue down the list without waiting, how do I do this?
0
loftyworm
Asked:
loftyworm
1 Solution
 
KutyiCommented:
0
 
Shift-3Commented:
Try prefacing each SHUTDOWN command with START.  This will allow the script to continue without waiting for the command to complete.
http://www.ss64.com/nt/start.html
0
 
DarrenMcCallCommented:
You could write a script in AutoIt (or AutoHotKey)
Run("shutdown -s -m \\RemotePC1")
Run("shutdown -s -m \\RemotePC2")

Open in new window

0
 
loftywormAuthor Commented:
@kutyi
Very nice command, I will have to remember that one when I write my next script, but sry, that was not the question.
@shift-3
exactly was I was looking for, ty :)
0
 
KutyiCommented:
No need to say sry, you asked the question and you get to pick your solution!  Glad you got it working!.....:)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now