Powershell Open Remote Command Prompt

Sounds like your best bet here is to use PSExec to open a remote PowerShell console or command line from your local machine, which would be executing on the remote server. Start: The start command is used to open a new command line window to run a specified program or command. Enabling PowerShell Remoting. Is this possible? -- Hugh. If I was to run this executable manually on each PC it would look like: \\server\share\program. This is the powershell equivalent to route print command line tool. In Windows Explorer, you can type "powershell" in the address bar to open a PowerShell prompt at the current location. A new window with a dark blue background should launch. Still, there is a way to use information from those tools with further processing in PowerShell and this command helps. To use Windows PowerShell remoting, the remote computer must be configured for remote management. It uses different commands, known as  cmdlets in PowerShell. In the Command Prompt window you just opened, type runas /user: cmd and press ENTER to open another Command Prompt using alternate credentials. Execution Policies. my end game is to wrap this in invoke-command, to feed a list of PCs, and run the exe on all of them. List the commands available in Windows PowerShell In this step, you will list all available commands in Windows PowerShell. exe in elavated mode (from command line) so that it can run the commands?. with this article, we will try to cover “PowerShell vs Command Prompt” in all expects however it’s not possible to cover Powershell topic in a single article but we will try to write more and more on this. This is similar to using Invoke-Expression for string commands. winrm qc Command. To use this command just open the windows command prompt and type shutdown. Enabling PowerShell Remoting. Remote Desktop Auto Login Powershell Script. Remember, you need to run Command Prompt with admin access in order to carry out certain activities. the argument list has a bunch of quotes and backslashes in it. You can access the Command Prompt in the following ways: Press "Win + R" shortcut keys to open Run prompt. This command adds the computer to the trusted host, so there should be no problems with running PowerShell commands afterward. Click Start, click Run, type cmd and press ENTER. We can enable remote desktop from windows command line by running the following command. EXE command should be in your toolkit. In order to start the transfer, on the target computer (in the remote location), you will open a PowerShell command prompt and type. qwinsta /server: server name. I was able to open that cmd client but don't know how to run a command on it via script. This extension provides rich PowerShell language support for Visual Studio Code. Hopefully this will be useful in situations where you want to automate certain Windows functions. NET Framework. Make sure you are logged in to the server or PC with an account that. It exposes all important IIS server management functionality available through a set of intuitive management objects that can be manipulated through the cmd. Windows PowerShell will launch with the rights of the current user. net start TermService If the service is already running you will get the message 'The requested service has already been started. … You do this by typing winrm space quickconfig … in an elevated command prompt. I click File, then Open. Remote Access administrators can use the tools to manage Remote Access. However, Microsoft is making a pretty major change to the default command line tool in Windows. PsExec is probably the most powerful tool in the kit, as you can execute any command in your local command prompt just like executing it on the remote computer. Solution 3: Adding the below line to the profile. 2 and a new version of posh-git; the PowerShell scripts have been changed to address issues raised by commenters. 0 with Invoke-Command. addrs for remote management connections, and configure the Windows Firewall to accept those connections. Command Prompt. To use Windows PowerShell remoting, the remote computer must be configured for remote management. Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh. Right click on the Start button and select Command Prompt or Command Prompt (Admin) option. If you really want to have a command prompt access on a remote machine, and perform any command as if you were there (including PowerShell commands), then you can use the Goverlan Reach product. exe application and this PowerShell function can serve as a workaround that allows you to automatically connect to servers. NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions. Remote Desktop (mstsc. It offers an interactive command line interface and scripting language. By Default, Windows Server Core will start Command Prompt (cmd). Trick #3: PowerShell Here. That being said, for any advanced tasks the command line provides greater flexibility and control over the task. To use, download it from the standalone or suite links above and execute it from a DOS prompt. Go in the folder where you saved PsExec. Windows PowerShell is Microsoft’s task automation framework, consisting of a command-line shell and associated scripting language built on. A COM object is definitely overkill. Further there will be some other articles about using PowerShell in network administration. This chapter from Windows PowerShell 3. Create a firewall rule with PowerShell. A network administrator can write a script to automate a large task that needs to execute multiple cmdlets. It works for any file path — you just have to know what that path is, and if you do, it speeds things up a whole lot more than navigating File Explorer and opening Command Prompt or PowerShell from there. Open CMD by clicking Start>Run and type "CMD" then press enter. 0\powershell. Net to query a remote computer. Don’t include the double quotes when typing at command prompt. The `&` operator is reserved for future use Does PowerShell have an operator that allows me to quickly produce the equivalent of & in a cmd prompt? Any method of running two commands in one line will do. Disclaimer. To create the best command-line experience, PowerShell is now the command shell for File Explorer. exe) Command Line Arguments. I need to run the remote session with "Run As Administrator" on the remote machine. I have access to the machine via a remote command prompt. To close an open file on a remote computer using the PSFile command: PSFile. In PowerShell, simply run the command Invoke-GPUpdate RemoteComputerName. Although the cmdlets are implemented using the service clients and methods from the SDK, the cmdlets provide an idiomatic PowerShell experience for specifying parameters and handling results. the below will install the my_software. If you use the little registry hack mentioned earlier to get the right-click context menu option back, you can open PowerShell from the File menu. " If you are using PowerShell, whether via SSH, or locally, run the following command to elevate your privileges: Start-Process powershell -Verb runAs. exe to SSH to Command prompt from remote Linux Machine 2)Open freesshd and goto "SSH" tab and set "Command Shell" to C:\WINDOWS\system32\WindowsPowerShell\v1. Signing PowerShell Scripts. Tip: You can see a brief description for available options by running the following command: mstsc. I used the PSTools command psexec to see if I could still get command line access to the remote server, and fortunately I could. Start a Remote Session. This cmdlet allows you to execute PowerShell commands on multiple remote computers that contain cmdlets that don’t feature the -ComputerName parameter. exe app supports a number of useful command line options you can apply in the Run dialog or by running the app from the command prompt or PowerShell. The most frequently used tools for remote command execution are PsExec and the PowerShell remoting cmdlets Invoke-Command and Enter-PSSession. Query windows remote registry via command line. Powershell Script to Install Software Remotely: The below powershell command was used for installing the application in your remote system. exe provides command-line switches for setting script properties. exe with parameters on multiple remote machines This topic contains 8 replies, has 5 voices, and was last updated by. 0\powershell. but not from powershell. Open Command Prompt from Windows+X Power Users Menu Press Windows+X to open the Power Users menu, and then click “Command Prompt” or “Command Prompt (Admin). You can now use the SSH client by running the ssh command. ps1 can run a program on multiple computers. Client OperatingSystem Fedora 27. Details: Opens a CMD prompt from within powershell and then executes the command and returns the text of that command. exe) in the Windows Logo Key + X menu, in File Explorer's File menu, and in the context menu that appears when you shift-right-click the whitespace in File Explorer. exe/command prompt as the LocalSystem Account on Windows 7? I tried a bunch of different ways but the way that worked the best was to. Use below command if you want to get the CPU utilization of remote machine from command prompt. First, you don't need to type passwords in clear text on the command line. psexec \\remoteserver powershell. … Before you can use the remote management tools … we'll talk about here, you must enable … the Windows Remote Management Service. Professor Robert McMillen shows you how to replace the Command prompt with PowerShell in the Start Menu. How to Enable Windows Updates from the Command Line Here are some simple one liners that will enable you to change the Windows Update Status from the Command Line. See the code below for your reference but you can also skip to the bottom. In Metro GUI, the Start menu is a matrix of icons as shown in Figure 1. Method 1: Enable Remote Desktop Using Registry Tweak. exe in elavated mode (from command line) so that it can run the commands?. This command can take in process Id, process name etc and can kill process from CMD. In this article she focuses on the command line arguments and the silent switches that can be used for msi and msp (un-installable patches). To keep these samples cleaner, I am going to use an imaginary installer that is not an MSI but the approach is the same. Hi, I was trying to script some remote USMT stuff, but ran out of time before moving on. PowerShell is an interactive Command-Line Interface (CLI) and automation engine designed by Microsoft to help design system configurations and automate administrative tasks. A new window with a dark blue background should launch. Shutdown From GUI If you have the graphical user interface component installed in Windows Server 2016, you can shut down simply by clicking the start button followed by the Power button, and then shut down. Before executing this command, you need to make sure that you have a valid network connection between this two system. exe is a command-line utility to manage Windows Server IIS 7+ web servers. It had administrative rights. This is the powershell equivalent to route print command line tool. It’s a feature, just like any other feature, so we’ll use the enable feature functionality: Add-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra; Reboot: You can do this using the shutdown command. You can use PowerShell for most things that you use Command Prompt for. Using the WS-Management protocol, Windows PowerShell remoting lets you run any Windows PowerShell command on one or more remote computers. It will copy file and folders to a remote server using the following syntax: Copy-Item "source" -Destination "\\server\C$" Please note that the user you are running the commands under must also exist and work on the servers you are copying the file. It’s a simple Network Port Scanner that scans a remote computer to find if that computer is accessible via a given network port. Two ways exist to connect to remote computers with Invoke-Command. exe requires escaping the command to pass through both my local shell and the Command Prompt on the remote Windows server before PowerShell handles the command. Right click on the Start button and select Command Prompt or Command Prompt (Admin) option. If you need instructions for this, look up how to integrate the DaRT tools into Windows PE. exe) program bundled with XP to query the remote computer for all its services. Use one of the below options to open Windows PowerShell. Replace Command Prompt with PowerShell. Automating with Jenkins and PowerShell on Windows - Part 2. If I launch a command line instance and type either powershell or start powershell , I am getting a PowerShell instance within the command line interface, i. Follow these steps to install Microsoft's open-source scripting environment, PowerShell, on macOS to aid in managing Windows and Unix-based systems from a Mac. One of the annoying features of PowerShell is that the Stop-Service, Start-Service and Restart-Service cmdlets don't have ComputerName parameters to start/stop/restart a service on a remote computer. Running winrm id, will show the version of winrm running on the system. Doing more with less is a common mantra bandied about in the workforce these. (For those of you who need a refresher, PowerShell is a task-based command-line shell and scripting language built on the. Just Replace "Computer Name" with the name of the remote computer. Connect-Mstsc - Open RDP Session with credentials This script allows you to open a Remote Desktop session with a remote session while specifying credentials. By Default, Windows Server Core will start Command Prompt (cmd). On the remote management computer, click Start > Run, type mstsc, and then click OK. Command prompt powershell keyword after analyzing the system lists the list of keywords related and the list of websites with related content, in addition you can see which keywords most interested customers on the this website. Hi All, I need to open a Command prompt (cmd. just start it up by typing PowerShell. The context-sensitive help displays matching cmdlets when the user starts to enter a command. Windows systems has a built in shutdown command that can be used to restart or shutdown local and remote computers. The PowerShell command prompt indicates that PowerShell is ready to run a command: PS C:\> The PowerShell prompt is determined by the built-in Prompt function. Execute the following statements to enable both the TCP and named pipes protocols. But the good old command 'prompt' does not work in Powershell. We will see later that you can also implement authentication mechanism on your web server and pass valid credentials to your Powershell Bit Transfer command. By default on a Windows Server Product Windows Remote Management (WinRM) is enabled, but Remote Desktop (RDP) is Disabled. (see "Added Features") TTY-7: This is the same user interface everyone knows Windows to be. exe file, even if you don't. 0 RTM is available for download once again. To close an open file on a remote computer using the Net File command: Psexec. Client OperatingSystem Fedora 27. Bam! As always, it is always easier to stay in command prompt and this is a great way to test port connectivity. That includes anything that can be run on the command line — you can change registry values, run scripts and utilities, or connect from that PC to another one. You can close the elevated PowerShell. The second is to use the PowerShell cmdlet set-alias to create cmd prompt-like names for the PS cmdlets you are using, so at least you can work with familiar commands. So, for example: psexec \\remoteserver cmd. exe and try the following command : PsExec. if it is unrestricted then you can execute the same or else need to change execution policy with the powershell command (Set-Executionpolicy unrestricted) , A warning message will come press y to set the execution. In the Command Prompt window, type WinRM enumerate winrm/config/listener at the command prompt, and then press ENTER. In this tutorial we'll show you how to enable remote desktop remotely using Registry, PowerShell or Command Prompt. ps1 at location c:\temp, open powershell command prompt go temp folder location with a command cd c:\temp and type the file name having extension. Includes the Remote Access GUI and Command-Line Tools. Many system administration tasks — from managing the registry to WMI (Windows Management Instrumentation) — are exposed via PowerShell cmdlets, while they aren’t accessible from the Command Prompt. ConEmu is not a shell, so it does not provide "shell features" like remote access, tab-completion, command history and others. See the second image below. EXE for good. Doing more with less is a common mantra bandied about in the workforce these. Perhaps the most interesting form of PowerShell remote management is One-to-Many Remoting with the Invoke-Command cmdlet. It works similarly to the dir Command Prompt command. This article applies to Windows 7, Windows Update, Windows 2008 Server and Windows 2012 server. Easier remote usage Clarifying Some Terms. We have following Powershell script file named myscript. In addition to Windows Defender's command-line utility, Windows 10 also provides you with a set of PowerShell cmdlets that let you perform many of the same types of Windows Defender operations you. In Chris Sander’s WindowsNetworking. This functionality was removed from the mstsc. In this PowerShell article we will discuss what is the difference between the PowerShell command and command propmpt. I also wrote a decent, generic script module for this that you can view examples of how to use - and download - below. Since Windows 10 Creators Update, you can also access PowerShell from the WinX menu. 0\powershell. Enabling PowerShell Remoting. Tour Start here for a quick overview of the site How can I navigate in command prompt to a remote folder which has been shared among users? use this mount. Load the command line version of your BIOS editing tool (ex: CCTK. This functionality was removed from the mstsc. Later, in part three, we’ll take a closer look at some. This command starts the WinRM service and creates a firewall rule to allow incoming connections. The /c tells CMD that it should terminate. Running winrm id, will show the version of winrm running on the system. Install Microsoft Teams PowerShell module as a normal user. In the example above, 'abertram' is logged into the remote computer in session 2. EXE for good. How To Run PowerShell Commands Against a Remote VM. PowerShell is more complicated than the traditional Command Prompt, but it's also much more powerful. All utilities can be launched from a batch script or manually from the Windows command prompt. Here are a bunch of ways to determine the last boot up time of remote Windows computers, using WMI/CIM (and via PSRemoting). Client OperatingSystem Fedora 27. PowerShell is actually very different from the Command Prompt. The command fails with access denied in the eventlog. In this article, we will be checking out how to do it. That’s it! Here’s how you can connect the remote machine and run some PowerShell commands there. Bluetooth Command Line Tools are a set of command line utilities for Windows XP, Vista or Windows 7 which allow you to configure bluetooth adapter, discover remote bluetooth devices and their services, push files to remote devices through OBEX. PowerShell Using cmdlet -1 Start PowerShell by typing powershell • Looks like command prompt, but with PS in front • For help use: get-help < cmdlet name> • For help on all the possible get commands use: get-help –Name get-* **060 And like I was saying, you. This functionality was removed from the mstsc. Technically, opening Disk Management from the Command Prompt would require that you actually open the Command Prompt program (which you can do if you want; it works the same way). The command fails with access denied in the eventlog. exe) in Windows 10 using the following command: You can optimistically type in an English. PS C:\> net start WinRM The Windows Remote Management. Method 1: Enable Remote Desktop Using Registry Tweak. It’s a simple Network Port Scanner that scans a remote computer to find if that computer is accessible via a given network port. $UserCredential = Get-Credential In the Windows PowerShell Credential Request dialog box, type your Office 365 user name and password, and then click OK. the argument list has a bunch of quotes and backslashes in it. Windows PowerShell Invoke-Command. Start/Stop/Restart service on remote computer with powershell; PowerShell: Start and stop services on remote computer with alternate credentials; The first one I wrote when I was not matured enough with PowerShell and the second one recently to address a specific requirement where user need to pass alternate credentials to manage services. By default, same SSH protocol is used to authenticate and establish a SFTP connection. Windows PowerShell Invoke-Command. PowerShell ISE provides tabs to allow work on multiple administrative tasks. Windows firewall is a useful mechanism which is used to control network traffic and ports. Next, enter the following command: psexec \\ cmd. The prompt is very good, but after few days of working you feel to have a change. On the remote server, open the PowerShell console as Administrator and run the following command which will start the WinRM service and create a firewall to allow incoming connections. If you want to do a full synchronization between Active Directory and Office 365 (which is basically Azure Active Directory) you can logon to the DirSync Server, open a PowerShell windows (with elevated privileges), navigate to the C:\Program Files\Windows Azure Active Directory Sync\ directory and type the. The Echo command in PowerShell is really an alias for Write-Host, so you can't use the Echo command in PowerShell to view the exact command line like you can in Cmd. 1/31/2019 · In addition to installing via the graphical Settings app, you can also install specific RSAT tools via command line or automation using DISM /Add-Capability. Attackers are leaning more on PowerShell because it is readily available and gets the job done with an added bonus of leaving behind almost no useful forensic artifacts. Easier remote usage Clarifying Some Terms. psexec \\remoteserver powershell. Summary: Learn how to use Windows PowerShell to create a remote management session. This chapter from Windows PowerShell 3. Below are the steps that I have done :. Using a command-line switch doesn't mean you have to type the whole startup command at the command prompt. DA: 76 PA: 72. In the example above, 'abertram' is logged into the remote computer in session 2. Open powershell with admin privileges. exe) of a Remote server computer and Run a Command from my asp. You may not want to open it up to anywhere though. Get AD Service Name. CommandLine The command line and any command line arguments for the process. Before you do any of this, you must run the following command in an admin PowerShell command prompt on the machine where you would like to run the remote command: winrm quickconfig need to open up the client connection permissions. EXE command line and moved over to POWERSHELL. Here are the command line options for Remote Execute:. How PowerShell Differs From the Windows Command Prompt. Start-RemoteProcess can be used in conjunction with Copy-ToTemp to copy and execute programs on remote computers in a single command line. In case you have PowerShell v2 or less installed, you must run only winrm native commands to do listener configuration. Moreover, the PowerShell command shell enables you to create complex scripts with multiple conditions. I've tried migrating this account to a new one and strangely enough when I open CMD in safe mode it says this app cannot be opened by the built in admin account. Final Thoughts. And since I use the PowerShell prompt, I?m not sure how this would play out with the bash command. There are command line switches that help launch chrome incognito mode. PowerShell Cheat Sheet Import, Export, Convert. replace this with the command you wish to run. Type powershell in search box and select Windows PowerShell desktop app. I am trying to automate the above scenario through powershell from my local machine. To Log off the terminal session of the remote server, you can use any one of two command line tools. Open a command prompt. exe (or it's Start menu shortcut) and run it 'As Admin'. Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. You can easily delete files from PowerShell by using command "Remove-Item". So I do the following: I open the Windows PowerShell ISE. exe command-line parameters shown in Table 1. To use this command just open the windows command prompt and type shutdown. Windows 10: Execute Powershell command on remote computer. Open a PowerShell prompt from the Start Menu (All Programs --> Accessories if you're on XP, just search on higher versions of Windows), and just type dir and press Enter. Just enter alias in a PS session to see what is already set. We can open chrome as a different user from CMD. Steps to enable PowerShell. This requires configuration on the Secret Server Web Server and/or Distributed Engines. Before executing this command, you need to make sure that you have a valid network connection between this two system. I'm currently working on a somewhat restricted environment where we have to run SSH commands on a Windows Server. From a CMD shell rather than running PowerShell within the command prompt, you might want to open a separate PowerShell window - so use START POWERSHELL. Bluetooth Command Line Tools are a set of command line utilities for Windows XP, Vista or Windows 7 which allow you to configure bluetooth adapter, discover remote bluetooth devices and their services, push files to remote devices through OBEX. Let’s say you want to run GPUpdate. exe… Running Windows remote Desktop Connection from the CLI. By Default, Windows Server Core will start Command Prompt (cmd). When you deploy McAfee Agent from ePolicy Orchestrator (ePO), the following command-line options are available for the McAfee Agent binary (CmdAgent. One of LOGOFF and another one is RWINSTA. Below are the steps that I have done :. Need to run. We can open chrome as a different user from CMD. Just type the following cmdlet and then hit Enter: Enter-PSSession -ComputerName COMPUTER -Credential USER. Jaron Bradley and I previously tackled the subject of command-line auditing in the CrowdCast, “What Malware? Hunting Command Line Activity”. We will see later that you can also implement authentication mechanism on your web server and pass valid credentials to your Powershell Bit Transfer command. Running commands in elevated prompt on remote computer Welcome › Forums › General PowerShell Q&A › Running commands in elevated prompt on remote computer This topic contains 6 replies, has 2 voices, and was last updated by. exe) Command Line Arguments. We have been trying different variations of code all day in PowerShell and seem to get code that runs but nothing happens on the remote PC. You can close the elevated PowerShell. Often, the ideal way to tackle this issue is by implementing Sysmon to capture command line activity (along with much more). Have your invoke-script command run PSExec connecting to the local machine. Please see "get-help about_signing" for more details". The AWS Tools for PowerShell enable you to script operations on your AWS resources from the PowerShell command line. It is mostly used for automated operations, such as making CVS access a repository on a remote server. We have to say "Yes" to the prompt (just enter "y"). winrm qc Command. Step 2: In Windows PowerShell window, write msra and press Enter to open Windows Remote Assistance. A new window with a dark blue background should launch. Solution 3: Adding the below line to the profile. In Windows Explorer, you can type "powershell" in the address bar to open a PowerShell prompt at the current location. If you think of PowerShell as a car, then the Start-Process would be the ignition key that starts the car. There are a ton of aliases already set in PS. Thankfully Windows offer two solutions to do this, by using either the command line or from PowerShell. So as you can see, there are many tools and techniques – most built-in to Windows – that allow you to manage Windows processes remotely. In this PowerShell article we will discuss what is the difference between the PowerShell command and command propmpt. Execute PowerShell Script using alternate credential with no prompts This site uses cookies for analytics, personalized content and ads. Using Start-Program. Step 2: Import posh-git from your PowerShell profile. The ContextConsole Shell Extension adds an "Open Command Prompt" menu item to the context menus (right-click menus) in Windows Explorer so that you can open a command prompt in the selected directory (or directories) or in the current directory that you are viewing. of a powershell or vbs. You have to extract the msu file first from command prompt to get the. The Microsoft PowerShell extension for Visual Studio Code provides rich language support and capabilities such as completions, definition tracking. I believe it has a command-line switch to elevate permissions. This tutorial will explain how to open an Elevated Command Prompt in Windows 10. Command Prompt, PowerShell, Ubuntu on WSL, a Raspberry Pi via SSH, etc. psexec \\remoteserver powershell. Shutdown From GUI If you have the graphical user interface component installed in Windows Server 2016, you can shut down simply by clicking the start button followed by the Power button, and then shut down. This functionality was removed from the mstsc. Permissions. Quickly get the command line arguments from processes with Powershell Feb 5, 2010 I’m sure I’m the only person in the world who ever wants to know what the command line arguments for running processes is, but in the remote chance that someone else out there might need this some day, here you go. exe) in the Windows Logo Key + X menu, in File Explorer's File menu, and in the context menu that appears when you shift-right-click the whitespace in File Explorer. Though Get-Service cmdlet is offering -computername parameter, stop-service, start-service, and restart-service cmdlets are not offering this feature. Method 1: Enable Remote Desktop Using Registry Tweak. Netsh is a built-in tool which exists all Windows versions. This is similar to using Invoke-Expression for string commands. Remote Access administrators can use the tools to manage Remote Access. Here we show you how. Use PowerShell to Delete a Single File or Folder. Type the following command to allow scripts to run and press Enter: Set-ExecutionPolicy. The cool thing is that I can open a Windows PowerShell script in the Windows PowerShell ISE on my 64-bit laptop (running Windows 8a and Windows PowerShell 3. I am trying to automate the above scenario through powershell from my local machine. These 10 PowerShell commands will come in handy when you need to remotely manage computers on a domain or workgroup. Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. The PowerShell command prompt indicates that PowerShell is ready to run a command: PS C:\> The PowerShell prompt is determined by the built-in Prompt function. The solution is a little scripty, but I did actually type it in on the command line:. What is Command Prompt. Open Code: shell:AppsFolder 2. After reading Automating with Jenkins and PowerShell on Windows Part – 1, you should have a grasp on the basics of Jenkins and be excited to start doing more automation! Let’s start reaching out into our network with Jenkins and take actions on remote machines. Windows 10 Enable Remote Administration Command Line. If your software is an MSI then you can simply use msiexec from commandline for e. Third, Start-Program. The first method uses a built in Windows command and the second method uses PowerShell. For that I use the PowerShell Here registry hack from Scott Hanselman’s blog.