PowerShell: Script to Search Scheduled Tasks for a Service Account
#$jumpBox=$env:COMPUTERNAME$servers="WEB01"$runas="Network Service"# Admin$who = whoami if ($who.substring($who.length-5, 5) -eq "-admin"){$username=$who;} else {$username=$who+"-admin";}#$password = Read-Host -Prompt…
0 Comments