Start Program Remote Computer Command Line
Nov 18, 2011 Need a simple script, to remotely run an 'exe. WIN Command line-DIR listing to text. You could run it with admin credentials for the remote computer. How to Shut Down and Reboot Remote PCs via the Command Prompt. Sitting in front of the remote computer. The Command Prompt from the Start Menu. Powershell Execute remote exe with command line arguments on remote computer. Invoke-Command; Start. To pass the command line arguments to the program.
If you open a Remote Desktop session to another Windows PC, even via an account with full admin privileges, you won’t be able to shut down or restart the PC via the traditional GUI methods. Heading to the in Windows 8, for example, or the Start Menu in earlier versions of Windows, only reveals a “Disconnect” button where options like sleep, shutdown, and restart.
Chatology Music. Thankfully, you can still reboot or shut down a remote PC, but you’ll need to do it manually via the Command Prompt. While connected to a remote PC, save all open documents and then launch the Command Prompt from the Start Menu in Windows 7 and earlier ( Start >Run >cmd) or search for Command Prompt or cmd from the Windows 8 Start Screen. In the Command Prompt window, we’ll be using the command shutdown. But we can’t just use it by itself — doing so will simply log off the current user, but leave the PC powered on. Instead, like many command line operations, we’ll need to add specific parameters to tell the shutdown command exactly what we want to do. So, to get started, type “shutdown” into the Command Prompt window, followed by a single space.
Next, we’ll add the necessary parameters, with the major ones listed below: Shutdown Command Parameters Parameter Function -s Shuts down the comptuer. -r Reboots the computer. -f Force-close all running applications. -m Computer Specifies a specific computer on the network that you want to shut down or reboot. Absent this parameter, the command affects only the local PC on which it is run.