Azure / repair-script-library

Organize and archive known repair scripts to enable anyone to easily fix their machines. The scripts are made primarily to repair VMs on the cloud.
MIT License
38 stars 39 forks source link

Create a new script to load/unload registry hives after deleting the corrupt CrowdStrike files #76

Closed zmyzheng closed 3 months ago

zmyzheng commented 3 months ago

This PR adds a new script to fix the Crowdstrike issue after vm bootstrap. Based on the investigation, it is needed to reg load/reg unload some registry hives from %windir%\system32\config into SYSTEM and SOFTWARE hives under HKLM to prevent the script hang issue.

Below are the testings I manually did: Step 1: Create a VM1 in west US Step 2: deleted VM1 but keep its OS disk Step 3: create a VM2 in west US Step 4: attach VM1's OS disk as VM2's data disk with Drive letter F: Step 5: run the script to test the registry hive load/unload from data disk F: