I didn't try running it against a server yet but can't see why it wouldn't work unless IT blocks WMI — bmg Mike Shepard Mike Shepard 3 3 silver badges 7 7 bronze badges. Marco Shaw Marco Shaw 3 3 silver badges 11 11 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked 2. Related Hot Network Questions. Question feed. Server Fault works best with JavaScript enabled. Click Sign In to add the tip, solution, correction or comment that will help other users. Report inappropriate content using these instructions. PowerShell: Running Executables. How do you know which one to use for the job? Here is an outline of the methods with examples and general use. Table of Contents.
Runs a ping, no. A test app that is run from the local folder but must be prefixed with the. Runs Get-Process. This will return the directory listing as a string but returns much faster than a GCI.
Type the full path to the location of the program that you want to run. Then, to pass parameters to the program, type them in the Parameters box. Type the path of the command that you want to run, and include the parameters that you want to pass to the command on the same line in the Command box. Type the parameters that will be passed to the program that you want to run.
This option is only available when you select the Program execution mode. Type the full path of the working folder that the program or command will use. The command or program will behave as if it was run from the working folder. Select one of the following execution options for the program: - Interactive : Select this option to display a user interface on the computer where the command or program is run. A user interface, if available, appears in a user session that is defined by the user credentials specified in the Run as boxes User name, Password on the Advanced tab.
In this mode no user interface will be displayed. Some programs may not function correctly when set to low priority. If this is the case, use the Interactive or Background, normal priority settings instead. Select this option to cause the Run Program to wait for the program or command to finish running before moving to the next activity in the runbook.
If you have set the Execution mode to Interactive , then the user must close the program before the Run Program activity is able to move to the next activity in the runbook. Type the maximum number of minutes to wait for the program or command to complete.
Set this value to 0 to have the Run Program activity to wait indefinitely for the completion of the program or command. If the time has expired and the program or command has not completed running, the Run Program activity will shut down the program or command and report a failure.
0コメント