Windows services

From taracodlabs/aiden · View interactive version

Windows services is an AI agent skill from the GitHub repository taracodlabs/aiden. Windows services: list, start, stop, restart, configure (PowerShell)

How to use this skill

Skill file

Windows Services

Manage Windows background services — list, start, stop, restart, and change startup type — using PowerShell's built-in service cmdlets.

When to Use

How to Use

List all running services

Get-Service | Where-Object Status -eq 'Running' |
  Select-Object Name, DisplayName, Status |
  Sort-Object DisplayName

Find a specific service

Get-Service -Name "*sql*" | Select-Object Name, DisplayName, Status, StartType

Start, stop, or restart a service

Start-Service   -Name "wuauserv"         # Windows Update — start
Stop-Service    -Name "wuauserv" -Force  # Windows Update — stop
Restart-Service -Name "Spooler"          # Print Spooler  — restart

Check service startup type

Get-Service -Name "wuauserv" | Select-Object Name, StartType, Status

Change startup type (Manual / Disabled / Automatic)

Set-Service -Name "wuauserv" -StartupType Manual     # won't start automatically
Set-Service -Name "DiagTrack" -StartupType Disabled  # blocked from starting
Set-Service -Name "Spooler"   -StartupType Automatic # restores auto-start

List services that failed to start

Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -ne 'Running' } |
  Select-Object Name, DisplayName, Status

Find service by process ID

$pid = 1234
Get-WmiObject Win32_Service | Where-Object ProcessId -eq $pid |
  Select-Object Name, DisplayName, State, ProcessId

View service dependencies

(Get-Service -Name "LanmanServer").DependentServices
(Get-Service -Name "LanmanServer").ServicesDependedOn

Examples

"Is Windows Update service running?"

→ Get-Service -Name "wuauserv" | Select-Object Name, Status, StartType

"Stop and disable the Print Spooler service"

→ Stop-Service -Name "Spooler" -Force; Set-Service -Name "Spooler" -StartupType Disabled

"Which automatic services are currently stopped?"

→ Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -ne 'Running' }

Cautions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.