Close Menu
PowerShell.roPowerShell.ro
  • Home
  • Automation
  • Powershell
  • VMWare
  • Windows
LinkedIn X (Twitter) Facebook
PowerShell.roPowerShell.ro
  • Home
  • Automation
  • Powershell
  • VMWare
  • Windows
LinkedIn Facebook X (Twitter)
PowerShell.roPowerShell.ro
Home»Automation»PowerShell script for automated remediation for CrowdStrike issue
Automation

PowerShell script for automated remediation for CrowdStrike issue

Catalin CristescuBy Catalin CristescuJuly 20, 2024
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Share
Facebook Twitter LinkedIn Pinterest Email

I have created a Powershell script for the Crowdstrike issue for some automation purposes. you can create a WinPE ISO File to boot into and remediate the crowdstrike issue.

  1. Boot into WinPE:
  2. Delete Problematic File: In startnet.cmd, add:
del C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys
exit

3. Reboot: The system should boot normally.

The script:

This script is designed for use in an on-premises VMware environment. It automates the process of mounting an ISO file to a list of virtual machines (VMs) specified in a text file. The script performs the following steps:

  1. Input File: Reads a list of VMs from a specified text file.
  2. ISO File Path: Requires the user to specify the local path of the ISO file in the $isoFile variable.
  3. vCenter Connection: Connects to the vCenter server using provided credentials.
  4. ISO Upload: Uploads the ISO file to the datastore with the most free space, using the first VM from the list to determine the appropriate datastore.
  5. VM Processing: For each VM in the list:
  • Maps the ISO file to the VM.
  • Powers off the VM.
  • Modifies the boot order to boot from the ISO file.
  • Powers on the VM and waits for 60 seconds to allow for any necessary modifications (e.g., updating the CrowdStrike folder).
  • Powers off the VM again and unmounts the ISO file.
  • Resets the boot order to boot from the Windows OS disk.
  • Powers on the VM.

6. vCenter Disconnection: Disconnects from the vCenter server.

This script ensures that the specified VMs are updated with the ISO file and then returned to their original boot configuration.

Test before using; don’t repeat CrowdStrike’s mistakes. Modify for your own needs.

automated C-00000291 crowdstrike github script winpe
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticlevExperts stats 2024
Catalin Cristescu
  • Website

Related Posts

VMWare

vExperts stats 2024

May 27, 2024
Automation

Tagging Virtual Machines with the CISTag Module in PowerShell

February 1, 2024
Powershell

Update HPE ILO firmware using PowerShell

January 2, 2024

Comments are closed.

Recent Posts
  • PowerShell script for automated remediation for CrowdStrike issue
  • vExperts stats 2024
  • Tagging Virtual Machines with the CISTag Module in PowerShell
  • Update HPE ILO firmware using PowerShell
  • PowerCLI script to check Cluster Overcommitment ratio
Categories
  • Automation (11)
  • Powershell (14)
  • Uncategorized (1)
  • VMWare (15)
  • Windows (2)
About Powershell.ro

Powershell.ro, the ultimate hub for tech enthusiasts! Dive into expert-written articles on PowerShell scripts, VMware, automation, Microsoft technologies, and DevOps practices. Unlock tips, tutorials, and solutions designed to empower IT professionals and boost your skills in automation and infrastructure management.

Recent Posts
  • PowerShell script for automated remediation for CrowdStrike issue
  • vExperts stats 2024
  • Tagging Virtual Machines with the CISTag Module in PowerShell
  • Update HPE ILO firmware using PowerShell
  • PowerCLI script to check Cluster Overcommitment ratio
LinkedIn
© 2025 PowerShell.ro.

Type above and press Enter to search. Press Esc to cancel.