update windows stuff
This commit is contained in:
7
windows/query_services.ps1
Normal file
7
windows/query_services.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
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'
|
||||
Reference in New Issue
Block a user