How do I start a service in PowerShell?
Ava White
Updated on March 01, 2026
How do I start a service in PowerShell?
To start or stop a service through PowerShell, you can use the Start-Service or the Stop Service cmdlet, followed by the name of the service that you want to start or stop. For instance, you might enter Stop-Service DHCP or Start-Service DHCP.
How do I restart a Windows service in PowerShell?
You can restart a windows service by using the Powershell cmdlet Restart-Service. Here, the parameter -PassThru force the command to wait until the service get restarted completed and displays its running status.
How do I run a PowerShell script from a service account?
Steps to workaround this issue:
- Create a brand new service account.
- Give the Service Account the permissions you want in Configuration Manager 2012.
- Use Run As Different User with the Service Account when starting the Configuration Manager 2012 Console.
- Close the console.
- Run the script using the service account permissions.
How do I restart a PowerShell service remotely?
Samples to restart a service with the PowerShell script ^
- Restart a service on a local computer: .\Restart-Service –ServiceName dnscache.
- Restart a service on Comp1 and Comp2: .\Restart-Service –ComputerName Comp1, Comp2 -ServiceName dnscache.
- Take servers list from a text file and restart a service on them:
How do I start a service?
To start a service on Windows 10, use these steps:
- Open Start.
- Search for Services and click the top result to open the console.
- Double-click the service that you intend to stop.
- Click the Start button. Source: Windows Central.
- Click the Apply button.
- Click the OK button.
How do I restart a service from the command line?
Use a command prompt
- To start a service, type: net start ServiceName.
- To stop a service, type: net stop ServiceName.
- To pause a service, type: net pause ServiceName.
- To resume a service, type: net continue ServiceName.
How do I force start a service?
To start a service with the command line, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to start a service and press Enter: net start “SERVICE-NAME”
How do I restart a Windows service from the command line?
How do I start PowerShell as a different user?
You can, however, also hold SHIFT and right-click the PowerShell icon inside the jump list. This will open another context menu, and here you can choose to run PowerShell with completely alternate credentials.
How do I run PowerShell from a different user?
Method 1: Run a task as different user with Scheduled Tasks When you start a PowerShell script, do it as here: Run PowerShell (or ps.exe) and add the script file with -file ps1> as argument. Then, add the desired credentials by clicking the Change User or Group button.
How do I restart a service remotely?
You can use mmc:
- Start / Run. Type “mmc”.
- File / Add/Remove Snap-in… Click “Add…”
- Find “Services” and click “Add”
- Select “Another computer:” and type the host name / IP address of the remote machine. Click Finish, Close, etc.
How do I start a service from the command line?