Files
product-demos/windows/sample_script.ps1
MKletz 788cf7b675 Powershell templates (#5)
Windows Powershell Demos
2022-02-23 12:01:02 -05: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'