Files
product-demos/windows/query_services.ps1
2022-09-09 13:03:31 -04:00

8 lines
238 B
PowerShell

Param
(
[Parameter(Mandatory=$true)]
[string]$ServiceState
)
# Sample parameterized script for use with powershell_script.yml
Get-Service | Where-Object -FilterScript {$_.Status -eq $ServiceState} | Select-Object -Property 'Name'