Forum Discussion
LewisMutton
Ambassador
3 months 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
Ambassador
2 months 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 :)
SamDickison
Community Manager
2 months agoPurge the services!