If you administer more than, say, 3 computers in your network, you’ve probably wanted to perform some operation against all of them in quick fashion. For example, you may get a frantic call some morning from your IT manager that goes something like this:
IT Manager: “I just got a call from my friend Bob, one of their users has just infected their network with the ReallyNastyPayload_WithAStupidName virus. He’s telling me that it targets the SuperExposed service on all Windows Servers, and that we need to shut it down ASAP! How long would it take you to do that?”
You: “That will take me about 10 min. I’ll let you know when I’m done.”
IT Manager: “Really? But we have 200 servers!! How can you get it done so fast?!”
You: “It’s kind of like magic, but I’ll explain later. Oh, and I’ll also want to discuss that raise I mentioned last week.”
IT Manager: “Okay, but are you really sure you can do this? I mean, I don’t want to tell anyone we’re covered unless you’re sure.”
You: “Don’t worry, I’ve done this before, it’ll be a piece of cake.”
IT Manager: “Man, Bob is going to think I’m so cool …”
You: “You know, now it’s going to be fifteen minutes till I’m done because we’re spending so much time on the phone.”
IT Manager: <Click> (hangs up phone)
Now you open a command prompt and you change to the directory where you have a plain text file with each of your servers on a separate line, which you created using the steps found here. Then you crack your knuckles and prepare to run a command against all of your servers which will stop and disable the SuperExposed service. Read more »