# 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.

![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…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/5d69d5ba470d49ae86a7d5eca03e2fbf.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: get-service, operating-system, powershell, restart-service, startup-type, windows-service
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-services-cheat-sheet
