daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $A = New-ScheduledTaskAction -Execute "Taskmgr.exe" -Argument '/S'
  2. $T = New-ScheduledTaskTrigger -AtLogon
  3. $P = New-ScheduledTaskPrincipal "Contoso\Administrator"
  4. $S = New-ScheduledTaskSettingsSet
  5. $D = New-ScheduledTask -Action $A -Principal $P -Trigger $T -Settings $S
  6. Register-ScheduledTask T1 -InputObject $D
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top