.. / New-ScheduledTask

Creates a scheduled task instance


Functions:
Type:
Toolsets:

Execute

Create new scheduled task

$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
$d = New-ScheduledTask -CimSession $s -Action $a -Principal $p -Settings $ss
$t = Register-ScheduledTask -CimSession $s Backdoor -InputObject $d

Comments
Mitre Att&ck
T1047




Updated: 2024-12-13
Contributor: Arris Huijgen (bitsadmin)