Created
July 19, 2024 12:24
-
-
Save christopherwoodall/fe607852d8b69363c2eeb52fbad46621 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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