Forum Discussion
LewisMutton
Bronze III
14 days agoTrick or Treat on Specter Street: Ghost of the SOC
I know it's one of the challenge labs but I'm fairly sure I'm missing something extremely straight forward, it's 100 point difficulty 4.... Someone help me please! I'm banging my head against a wall ...
steven
Silver II
6 days agomaybe I was too radical, i've deleted everything which was not by windows :)
Get-ScheduledTask | Where-Object { $_.TaskPath -notlike '\Microsoft\*' } | ForEach-Object {
try {
Disable-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath -ErrorAction Stop | Out-Null
Unregister-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath -Confirm:$false -ErrorAction Stop
Write-Host "Removed: $($_.TaskPath)$($_.TaskName)"
} catch {
Write-Warning "Failed: $($_.TaskPath)$($_.TaskName) — $($_.Exception.Message)"
}
}solved the lab and removed some services too much, but hey, .. to be on the safe side :)
- SamDickison6 days ago
Community Manager
Purge the services!