-
-
Save tyranid/92e1c7074a9a7b0d5d021e9218e34fe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tasks = Get-ScheduledTask | | |
Where-Object { $_.Principal.RunLevel -ne "Limited" -and | |
$_.Principal.LogonType -ne "ServiceAccount" -and | |
$_.State -ne "Disabled" -and | |
$_.Actions[0].CimClass.CimClassName -eq "MSFT_TaskExecAction" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment