[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Using a command in PowerShute Network Shutdown

Posted on 2014-08-07
Medium Priority
Last Modified: 2014-10-10
I want to run a command in PowerShute Network Shutdown and can't get it to work.

I created a batch file here C:\APC_Server_Shutdown\shutdown_untangle.cmd

The command in the batch file is
plink.exe -batch -pw [password] root@ shutdown -h now

Open in new window

plink.exe reside in the folder C:\APC_Server_Shutdown\

When I right click on the shutdown_untangle.cmd batch file it works. When enter this "C:\APC_Server_Shutdown\shutdown_untangle.cmd" in a command I get

'plink.exe' is not recognized as an internal or external command,
operable program or batch file.

Open in new window

What am I doing wrong?
Question by:Gerhardpet
  • 2
LVL 35

Expert Comment

by:Joseph Daly
ID: 40246642
I would use the full path to the plink.exe executable in the command.

Expert Comment

ID: 40246648
You will have to run from the same location as plink.exe OR, in the batch file, put the full path to plink.exe.

Accepted Solution

Gerhardpet earned 0 total points
ID: 40253202
That worked but  trying to run the command file from PowerShute Network Shutdown does not work.

Any ideas on how to setup the command in Powershute?

Author Closing Comment

ID: 40372520
I never got this to work. I contacted APC for support and they never solved it for me. I followed up atleast 5 times and the support rep each time said that he would get back to me after he would talk to their developers. It seem to be a bug but he never confirmed it as such.

To say that their support is really bad.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Loops Section Overview

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question