Skip to content

Instantly share code, notes, and snippets.

@christopherwoodall
Created July 19, 2024 12:24
Show Gist options
  • Save christopherwoodall/fe607852d8b69363c2eeb52fbad46621 to your computer and use it in GitHub Desktop.
Save christopherwoodall/fe607852d8b69363c2eeb52fbad46621 to your computer and use it in GitHub Desktop.
# Identify the faulty driver file
$faultyDriver = "C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys"
# Check if the file exists
if (Test-Path $faultyDriver) {
# Attempt to remove the file
try {
Remove-Item -Path $faultyDriver -Force
Write-Output "Faulty driver removed successfully."
}
catch {
Write-Error "Failed to remove faulty driver: $_"
}
}
else {
Write-Output "Faulty driver not found."
}
# Optionally, restart the computer
# Restart-Computer -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment