N
Glam Journal

How do I start a service in PowerShell?

Author

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:

  1. Create a brand new service account.
  2. Give the Service Account the permissions you want in Configuration Manager 2012.
  3. Use Run As Different User with the Service Account when starting the Configuration Manager 2012 Console.
  4. Close the console.
  5. 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 ^

  1. Restart a service on a local computer: .\Restart-Service –ServiceName dnscache.
  2. Restart a service on Comp1 and Comp2: .\Restart-Service –ComputerName Comp1, Comp2 -ServiceName dnscache.
  3. 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:

  1. Open Start.
  2. Search for Services and click the top result to open the console.
  3. Double-click the service that you intend to stop.
  4. Click the Start button. Source: Windows Central.
  5. Click the Apply button.
  6. Click the OK button.

How do I restart a service from the command line?

Use a command prompt

  1. To start a service, type: net start ServiceName.
  2. To stop a service, type: net stop ServiceName.
  3. To pause a service, type: net pause ServiceName.
  4. 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:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. 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:

  1. Start / Run. Type “mmc”.
  2. File / Add/Remove Snap-in… Click “Add…”
  3. Find “Services” and click “Add”
  4. 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?