Computeractive

How To, Issue 746, 1

Sep 15th, 2026 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. while ($true) {
  2. $t = Get-ScheduledTask | Where-Object { $_.State -eq 'Running' -and $_.TaskPath -notlike "\Microsoft*" }
  3. if ($t) { $t | Select-Object TaskName, TaskPath | Format-Table;break }
  4. }
  5.  
Advertisement
Add Comment
Please, Sign In to add comment