Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ($true) {
- $t = Get-ScheduledTask | Where-Object { $_.State -eq 'Running' -and $_.TaskPath -notlike "\Microsoft*" }
- if ($t) { $t | Select-Object TaskName, TaskPath | Format-Table;break }
- }
Advertisement
Add Comment
Please, Sign In to add comment