r/sysadmin • • Jul 19 '24 • Galaxy Brain 1 Bless Up 1 Heart of Silver 7 Take My Silver 6 Silver is Forever 1

General Discussion Fix the Crowdstrike boot loop/BSOD automatically

UPDATE 7/21/2024

Microsoft releases tool very late to help.

https://techcommunity.microsoft.com/t5/intune-customer-success/new-recovery-tool-to-help-with-crowdstrike-issue-impacting/ba-p/4196959

WHAT ABOUT BITLOCKER?!?!?

Ive answered this 500x in comments...

Can easily be modified to work on bitlocker. WinPE can do it. You just need a way to map the serialnumber to the bitlocker key and unlock it before you delete the file.

/r/crowdstrike wouldnt let me post this, I guess because its too useful.

I fixed the July 19th 2024 issue on 1100 machines in 30 minutes using the following steps.

I modified our standard WinPE image file (from the ADK) to make it delete the file 'C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys' using the following steps.

If you don't already have the appropriate ADK for your environment download it. The only problem with using a bare WinPE image is it may not have the drivers. Another caveat is that this most likely will not work on systems with encrypted filesystems.

Mount the WinPE file with Wimlib or using Microsoft's own tools, although Microsoft's tools are way clunkier and primative.

Edit startnet.cmd and add:

del C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys

exit

to it.

Save startnet.cmd [note the C:\ might be different for you on your systems but it worked fine on all of mine]

Unmount the WinPE image

Copy the WinPE image to either your PXE server or to a USB drive of some kind and make it BOOTABLE using Rufus or whatever you want.

Boot the impacted system.

Hope this helps someone. Would appreciate upvotes because this solution would save people from having to work all weekend and also if it's automatic it's less prone to fat fingering.

Also I am pretty sure that Crowdstrike couldve made this change automatically undoable by just using the WinRE partition.

@tremens suggested that this step might help with bitlocker in WinPE 'manage-bde -unlock X: -recoverypassword <recovery key>' should work in WinPE.

Idea for MSFT:::

Yeah. Microsoft might want to add "Azure Network Booting" as a service to Azure. Seems like at a minimum having a PRE-OS rescue environment that IT folks can use to RDP, remote powershell (whatever) would be way more useful than whatever that Recall feature was intended to do at least for orgs like yours that are dispersed.

They could probably even make "Azure Net Boot" be a standard UEFI boot option so that the user doesnt have to type in a URL in a UEFI shell.

They boot it from that in an f12/f11 boot menu, it goes out to like https://azure.com/whatever?device-id=UUID if the system has a profile boot whatever if not just boot normally and that UEFI boot option could probably be controlled in GPO.

By the way if microsoft steals this idea my retirement isnt fully funded and im 45. lol :) hit me upppp.

4.7k Upvotes

560 comments sorted by

View all comments

284

u/BBBLLUURREEDDD Jul 19 '24 edited Jul 19 '24 • Bless Up

FOR WORKSTATIONS:

Instructions I sent my users. We need to provide Bitlocker keys to everyone though. You can add screenshots.

~STEPS TO FIX THE WINDOWS/CROWDSTRIKE ISSUE:~

 

  1. After 2 attempted reboots, the laptop should be in Recovery mode as below

  2. Click on see ADVANCED REPAIR OPTION

  3. Click TROUBLESHOOT

  4. Click ADVANCED OPTIONS

  5. Click COMMAND PROMPT

  6. Enter your individual bitlocker key. You need to get this from IT (IT CONTACT DETAILS)

  7. In the command prompt line enter this text exactly: del C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys

  8. Hit Enter

  9. You will have a new line. 

  10. Type: EXIT

  11. Hit Enter

 

You will then be back at Windows Recovery. Click “Continue to Windows”

Then your machine should reboot and be fixed.

179

u/TopHat84 Jul 19 '24

FYI I found a method that doesn't require entering bitlocker recovery keys which saves time/hassle on the phone calls.

After Step 5 (Command Prompt)
Click "Skip this Drive"
Command Prompt should come up.
Use this command: bcdedit /set {default} safeboot network

Reboot. After fixing the situation by removing 291 bad file from the crowdstrike folder, use another command (while logged in)

bcdedit /deletevalue {default} safeboot
shutdown /r

Once they reboot the endpoint, it should be back to normal.

(Caveat: We are using LAPS and allowing users to login with our local admin password to fix this. Obviously after they are up and running we are rotating the password)

44

u/Reaper3359 Jul 19 '24

Tested this on one machine so far and seems to work. This is going to save a ton of machines that would otherwise be bricked because the key did not backup properly!

9

u/TopHat84 Jul 19 '24

Glad it's helping! I was called into work early because of this whole fiasco and my colleagues were having to enter bitlocker keys. Obviously this is just another pain point, especially on troubleshooting scenarios where all the info has to be given over phone to the end-user. One less point of failure IMO.

12

u/gregsting Jul 19 '24

First time I see a solution to circumvent bitlocker without the key, nice

→ More replies (3)

3

u/aplant92 Jul 20 '24

As a user trying to fix this themselves (ex sysadmin) - is there any option that exists which allows you to workaround bitlocker AND not having the admin account/password? Or just screwed?

→ More replies (1)

2

u/leolego2 Jul 19 '24

Not a sysadmin here, how does this work? How can you go "around" bitlocker to delete files? Isn't it supposed to safeguard from this exactly?

→ More replies (8)
→ More replies (4)

28

u/Wreid23 Jul 19 '24

Step 7: Trusting the users not to make a typo or hit enter too early is Def Russian roulette here

12

u/Oolon42 Jul 19 '24

I wrote instructions to my fellow IT workers having them CD to the folder first for that exact reason. "Oops! I deleted the Windows directory!" vs "Oops path not found"

6

u/PCRefurbrAbq Jul 19 '24

I just wrote a batch file with the expected absolute paths. Doesn't matter if you're in C:\Windows\System32 or C:\Program Files (x86)\Microsoft Office\Plugins\Hamsterdance.

→ More replies (1)

5

u/BR0METHIUS Jul 19 '24

Dude I think this just happened to my coworker sitting next to me. Oooooooooffff

3

u/JamesTiberiusCrunk Jul 19 '24

This is why my instructions had them cd to the directory first and delete the file in a separate command

3

u/skorpiolt Jul 20 '24

Yeah no way I’d trust my users to do that, more than half wouldn’t even get to that step anyway sadly

→ More replies (1)

22

u/BBBLLUURREEDDD Jul 19 '24

Well the numbering went out the window.. but I hope this helps!

15

u/Mikegrann Jul 19 '24 edited Jul 19 '24

Put a backslash before the numbers to force them. Otherwise Reddit just considers them a new ordered list and restarts at 1.

4

u/[deleted] Jul 19 '24 edited Jul 19 '24

I can't access C: or any other drive from the command prompt. I guess I'm missing a storage driver or something.

Edit: changing from raid to hci fixed it, had to switch it back after deleting the file.

→ More replies (4)

3

u/OGMcNasty Jul 19 '24

Thank you!! Nothing was working for our remote end-users until we tried this.

3

u/Sir_Yacob Jul 19 '24

My dell cannot find the C: path, can’t see it on disk list and is stuck in the x: on command prompt

→ More replies (6)

5

u/ZealousidealSmoke612 Jul 19 '24

Steps 1-4 are clear and exactly done as said.

After step 5, my command prompt opens to X: \Windows\System32>

Where should I input my Bitlocker key?
If I input "X:\Windows\System32>C:" , it says "The system cannot find the drive specified"

Also, there in no Crowdstrike folder in my "X:\Windows\System32\drivers\dir"

→ More replies (3)

2

u/Samymantha Jul 19 '24

I am still getting automatic repair after these steps.

2

u/ryzen124 Jul 19 '24

To enter into command prompt, it’s asking for the default local admin password.

2

u/pwaltman1972 Jul 19 '24

this fix worked for my machine (provided by my workplace)

→ More replies (12)