Source Code and Samples

Friday, 9 February 2007

Stopping, Starting, Suspending, and Restarting Services

Description

Stopping, Starting, Suspending, and Restarting Services with powershell (spooler service in this example)

Source Code

Stop-Service -Name spooler

or

Start-Service -Name spooler

or

Suspend-Service -Name spooler

or

Restart-Service -Name spooler

No comments: