AD | Application | AWS | Azure | Cloud | Database | Enterprise | Environmental | Event Log | File System | IoT | IT Service | Network/System | NIS2 | Infra | Performance | Protocol | SaaS | Security | Service Level | Storage | Linux | VMware | VoIP | Web | Wireless | SNMP

MonitorTools.com » Administration » Powershell » Powershell 1.0 » Restart-Service

Restart-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 »

Restart-Service

Description
Stop and then restart a service

Usage


Options


Example(s)
Restart the spooler (printing) service:

PS C:\>restart-service spooler -force

Find all the network services on the computer (starting with "net...") and restart any that are stopped:

PS C:\>get-service net* | where {$_.Status -eq "Stopped"} | restart-service


M