Hello,
Below I have a snip from one of our systems
PS C:\WINDOWS\system32> Get-ScheduledTask -Taskname cachetask |fl
Actions : {MSFT_TaskComHandlerAction}{MSFT_TaskExecAction}
Author : Microsoft
Date :
Description : Wininet Cache Task
Documentation :
Principal : MSFT_TaskPrincipal2
SecurityDescriptor : D:P(A;;FA;;;BA)(A;;FA;;;SY)(A;;0x001200a9;;;BU)(A;;0x001200a9;;;WD)(A;;0x001200a9;;;LW)
Settings : MSFT_TaskSettings3
Source :
State : Running
TaskName : CacheTask
TaskPath : \Microsoft\Windows\Wininet\
Triggers : {MSFT_TaskLogonTrigger}
URI : \Microsoft\Windows\Wininet\CacheTask
Version :
PSComputerName :
What I am looking to do here is remove the {MSFT_TaskExecAction} as it is malicious code injected into the system. {MSFT_TaskExecAction} is a cdm that exec some nasty powershell code.
Did some digging and I could not come up with a native way with in power shell to edit these scheduled tasks.