Services: `Get-Service` and `Restart-Service`

A service is a program Windows runs with no window, such as the Print Spooler: Get-Service shows each one's Status and, with Select-Object, its StartType, all without changing anything, while Restart-Service, Stop-Service, Start-Service and Set-Service change them and need an administrator window, after a rehearsal with -WhatIf.

Updated

Cheat sheet for the lesson Services: `Get-Service` and `Restart-Service`: A service is a program Windows runs with no window, such as the Print Spooler: Get-Service shows each one's Status and, with Select-Object, its StartType, all without changing anything, while Restart-Service, Stop-Service…
Category
PowerShell
Level
Journeyman
Tags
get-service, operating-system, powershell, restart-service, startup-type, windows-service