Shut down all network computers via batch script?

1 Answer

Answer :

answer:I recently did this because we had an issue with our Generator not cutting over. Once the UPS runs out, hard loss of power will affect hard drives, system boards, cache batteries, etc for weeks after power is restored. I put together a script that called psshutdown or WMIC for all Windows servers. I did them in batches for controlling them (Critical Apps, Email Servers, ancillary, AD/GC/DC) in a better timing and order. Be extra careful at who has the ability to execute these as you are talking about shutting down your environment. Put operation controls in place at when and how these are executed. Create password control so they are not inadvertantly or maliciously executed. PM me if you need more info. Both are free. WMIC commands SysInternals psshutdown

Related questions

Description : Simple way to add a GUI to batch script, or similar?

Last Answer : I think you might want to use http://www.horstmuc.de/ui.htm. Enjoy.

Description : Can you recommend a safe and free ad blocker program?

Last Answer : Which browser?

Description : Don’t people who retire trade their work routine for a non-work routine?

Last Answer : answer:Depends on the person. And one can't be always climbing mountains and travelling to distant lands. People crave a little structure in their lives, so they like to wander down to the coffee ... getting the same half caf skinny extra large caramel macchiato and a maple scone with two butters.

Description : Windows program to record IR signals and rebroadcast them?

Last Answer : Try searching on the term IR repeater.

Description : I need a program to automatically build in minecraft.

Last Answer : A teenager?

Description : Automate multiple program installation?

Last Answer : You can write a script in Auto Hotkey that launches the installer and clicks on a certain position relative to the window. I’m not sure if VB script can handle macros.

Description : Has one of your local tv stations made it big time with a local show?

Last Answer : answer:People Are Talking was a local Philly afternoon show hosted by Maury Povitch (a long time before he and Connie married.) It was so successful that he went national. The new host was ... watching it altogether as it just got more superficial, trashy and tabloidy with each passing week. Ugh.

Description : Program to make high quality gifs?

Last Answer : answer:GIMP is a free image editing program much like Photoshop that can be used to create .gifs. There are some tutorials here and a quick Google search should give you plenty more if those aren't ... when you save the file. Usually, upon saving, a prompt will come up with compression options, etc.

Description : I need a program to edit MKV files.

Last Answer : Tere are plenty of open source converters to put it in various formats. MKV to AVI, MP4, FLV, WMV, DivX, MPEG What did you use that didn’t work? What do you want to play it on? DVD, ipod, etc, etc? Get me a copy and I can convert any non corrupt file.

Description : I need a program to turn pictures into GIF's?

Last Answer : answer:You can search online for automatic .gif makers. If you’re looking for something you can personalize and edit, Gimp has relatively simple animation capabilities, and it’s free.

Description : How can I make a menu for my boot CD?

Last Answer : GRUB.

Description : Are there any good ways to run programs straight off of my flash drive?

Last Answer : Portable Apps

Description : Dreamweaver Crashes Every time I Run it?

Last Answer : Use your install disk. When you insert it it should allow you to do a repair, either that or start over from scratch.

Description : Whats The Best Free 3D Animation Program

Last Answer : try visual python. Its for extreme begginers

Description : Does Yahoo M has a function that show when my friend was online the last time?

Last Answer : Not that I’ve ever come across. Even if it did, if the person has been running as invisible it wouldn’t log the last date anyway.

Description : Write A Program That Will Store The Contents Of An Accumulator And Flag Register At Locations 2000h And 2001h.?

Last Answer : Answer :By making use of the Push & Pop instructions the program can be written as: LXISP, 4000H - this step initiates the SP at 4000h. PUSH PSW - the contents of the accumulator and flag are pushed into the stack. POP B MOV A, B STA 2000H MOV A, C STA 2001H HLT

Description : What Is Program Counter?

Last Answer : Answer :Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has ... one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.

Description : How To Make A Recycling Program

Last Answer : Begin with the Bottom Line Avoiding disposal fees should be one of the primary goals of a recycling program. The more materials you reduce, reuse and recycle, the less waste you dispose. The less waste ... : REDUCE the waste you produce REUSE as much as you can RECYCLE the rest and BUY RECYCLED.

Description : Write the ladder program for 24 hour clock.

Last Answer : Ladder Program for 24 hour clock:

Description : In 8085, whenever a signal is received at TRAP terminal, its program execution is transferred to a subroutine on address A) 0000 H B) 002C H C) 0024 H D) 0004 H

Last Answer : In 8085, whenever a signal is received at TRAP terminal, its program execution is transferred to a subroutine on address 0024 H

Description : How can I add an ELSE to this batch script?

Last Answer : answer:Doesn’t ELSE require an IF to go along with it? It’s been a looooong time since I wrote batch scripts, but have you tried: IF tasklist /nh /fi “imagename eq explorer.exe” | find /i “explorer.exe” >nul && ( echo Explorer.exe is running) ELSE (echo Explorer.exe is not running) ??

Description : Why isn't this batch script working?

Last Answer : What’s the shell? Is that windows cmd? Any details to the parse error ? Does “not ask to overwrite” mean don’t overwrite, or you don’t want it to stop and ask you the question?

Description : Help with this batch script?

Last Answer : answer:Try writing this at a DOS prompt and see if it gives you any ideas about how you can format your directory name: echo %date:~10,4%%date:~4,2%%date:~7,2% When I run that it gives me: 20110924 (for ... , then of course you'll need to modify the parsing of the Echo command. I know you can do it.

Description : Why won't this batch script work?

Last Answer : answer:outputting your variables before you check the loop would probably get you closer and let you know where the problem lies… You may also want to reverse your checks… check for your loop condition and then check for your continuation… so loop always gets checked first.

Description : Help editing a batch script?

Last Answer : answer:It looks like WallpaperStyle is the setting. Determines how the desktop bitmap is displayed on the desktop if the bitmap is not tiled 0 Center the bitmap on the desktop. 2 Stretch the ... vertically and horizontally to fit the desktop. http://technet.microsoft.com/en-us/library/cc978626.aspx

Description : Is there a way to get the weather for a specified time of the day via RSS or a script?

Last Answer : In direct answer to your question, weather [dot] com offers RSS feeds here. Depending on your feed reader software, you can configure the frequency that a particular feed is polled for updates. - Not sure I ... check it each morning. Set it as your web browser's default home page if that's easiest.

Description : Which type of hacker represents the highest risk to your network? A. Disgruntled employees B. Black-hat hackers C. Grey-hat hackers D. Script kiddies

Last Answer : A. Disgruntled employees

Description : Who are use their skill to identify security problem with computer network A)Black Hat Hacker B)Ethical Hacker C)Grey Hat hacker D)Script Kiddies

Last Answer : B)Ethical Hacker

Description : Which type of hacker represents the highest risk to your network? A. Disgruntled employees B. Black-hat hackers C. Grey-hat hackers D. Script kiddies

Last Answer : D. Script kiddies

Description : ) which type of hackers represent the highest risk to your network (a) black hat hackers (b) grey hat hackers (c) disgruntled employees (d) script kiddies

Last Answer : (c) disgruntled employees

Description : Which type of hacker represents the highest risk to your network? A. Disgruntled employees B. Black-hat hackers C. Grey-hat hackers D. Script kiddies

Last Answer : A. Disgruntled employees

Description : Which type of hacker represents the highest risk to your network? ∙ A. Disgruntled employees ∙ B. Black-hat hackers ∙ C. Grey-hat hackers ∙ D. Script kiddies

Last Answer : A. Disgruntled employees

Description : Who are use their skill to identify security problem with computer network A)Black Hat Hacker B)Ethical Hacker C)Grey Hat hacker D)Script Kiddies

Last Answer : B)Ethical Hacker

Description : Can I transfer videos to different computers via CD-R or DVD+RW without using a ripping program on the second computer?

Last Answer : Yes, of course you can. Don’t format the DVD as a video disc. Just keep it a data disc, and transfer the movie file to it. Just like you would transfer pictures or Excel spreadsheets.

Description : Is it possible to write SMS on an iPhone 3GS via a Mac computer's keyboard?

Last Answer : from what I remember, you can hook up some phones to apple's address book, and use that to send sms'es from your computer. The feature wasn't compatible with my sony ericsson but i think it should work ... know how it goes meanwhile i'll try out this bluephone elite with my SE .is it a free app??

Description : Are 2 computers connected for data transfer? I need to copy data from one to another. Ideally USB 2.

Last Answer : Yeah - it's fine ... But it's better and easier to use LAN (or wifi).

Description : Communication via New media such as computers, teleshopping, internet and mobile telephony is termed as (A) Entertainment (B) Interactive Communication (C) Development Communication (D) Communitarian

Last Answer : (B) Interactive Communication 

Description : How do you feel now that Yahoo!Answer is shut down?

Last Answer : I have never used it. Therefore I have no feelings about it.

Description : Should sites like 8chan be shut down?

Last Answer : No. Free speech is sacred. That said, it’s not unconstitutional for the FBI to investigate people who are discussing/planning acts of domestic terrorism.

Description : What was said that caused Facebook to shut down an AI system after chatbots started speaking in their own language ?

Last Answer : They weren’t really talking. They started to develop an indecipherable private language that no one would be able to translate. It was high level bot gibberish.

Description : Why would Pinterest acquire Jelly only to shut it down?

Last Answer : answer:Because Biz is a major investor in Pinterest. Because they wanted to hire Ben. Because Jelly has some proprietary line of code or two that they wanted. Because after they had all the stuff they wanted from it they didn’t see the point in paying for its upkeep. Just a guess.

Description : Do you remember the first time you tried to explain a problem logically, only to be shut down?

Last Answer : answer:I was dismissed too many times to remember. And how did you get your thing in the end?

Description : Why would I have to force Skype to quit to get my Mac to shut down?

Last Answer : Some programs just don’t automatically shut down when you shut off the computer and so you have to quit them. It shouldn’t be malware, just Skype trying to impose its will.

Description : Why did Answerbag shut down?

Last Answer : I really doubt it will ever come back, considering the creators just stopped giving a shit.

Description : Why is my computer taking a lot of time to shut down?

Last Answer : It might be downloading updates.

Description : Lawyers: Is it worth it for me to file a small claims against the restaurant I worked for in which they shut down our location without notice to employees?

Last Answer : I am not a lawyer, but I will give my opinion. If you read on the internet that in California, employers don't have to tell their employees they are closing down if there is a staff of ... no leg to stand on. Fairness doesn't always come into play in life and definitely regarding legal matters.

Description : So what is your theory, as to why the republicans want to shut down the government?

Last Answer : Um… You know it’s Obama’s fault… Right? I mean, he refused to negotiate!

Description : Why would a PC reset itself or shut down on its own?

Last Answer : Sometimes it is the capacitors on the mainboard are dying. Check the mainboard if any of the capacitors are bulging. If so, you need to replace the entire board (or solder on a replacement capacitor if you feel up to it). Otherwise the capacitor might explode, and you do not want that.

Description : Conservatives, Do you think you get shut down on Fluther?

Last Answer : I sincerely hope the conservative jellies don’t feel that way. I know we’re a predominantly left-leaning site, but it’s very important to be exposed to other views and have our own views challenged. If they do feel that way, I’m open to hearing suggestions on how to prevent that.

Description : Windows automatic update just shut down my computer automatically, only to not boot up again, how can I fix this?

Last Answer : And what bootloader are you using? I assume that it isn’t the normal Microsoft one since you are on a Mac. That means some funky interactions when the software tries to control hardware expecting a standard PC with a normal BIOS and all.