Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Stop-Service

Stop-Service - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Stop-Service

Description
Stop a running service

Usage


Options


Example(s)
Stop the Performance Logs and Alerts (SysmonLog) service on the local computer.:

PS C:\>stop-service sysmonlog

Use -force to stop a service that has dependent services, when doing this it is best to first list all the dependant services with Get-Service:

PS C:\>get-service iisadmin | format-list -property name, dependentservices
PS C:\>stop-service iisadmin -force -confirm