How to use PowerShell
is more advanced successor of the Command Line. It can be used for Windows system automation and configuration. It can also access the file system, registers, processes, services, network components or selected applications.
Before the first usage it is recommended to verify whether the PowerShell
is activated in the Windows system. If not then follow the steps below:
Control panels>Programs and functions>Activate or deactivate Windows system functions => "Windows PowerShell 2.0".
If the PowerShell
is to be used for executing commands that require higher permissions then you need to run 32- or 64-bit PowerShell "as administrator" (based on the 32- or 64-bit PROMOTIC runtime type used) and execute the following command:
and confirm the option "A
Runs the ping command and then netstat
var oShell = Pm.AxGetObject("new", "WScript.Shell");
var sInvoke = "";
sInvoke = += "ping 127.0.0.1" + "\r\n";
sInvoke = += "netstat";
oShell.Run("PowerShell " + sInvoke, 1, false);