scipag / HardeningKitty

HardeningKitty - Checks and hardens your Windows configuration
MIT License
1.27k stars 148 forks source link

Windows defender blocked #52

Open voctotgexp opened 4 months ago

voctotgexp commented 4 months ago

I got this error:

_Get-MpComputerStatus : A general error occurred that is not covered by a more specific error code. At C:\Program Files\WindowsPowerShell\Modules\HardeningKitty\0.9.2\HardeningKitty.psm1:1196 char:37

The Hardening Score is: 3.18 Unable to find the specified field.__

Seemed Windows Defender blocked or disabled. Is there any way to get around? Thank you

0x6d69636b commented 4 months ago

Please post the output of the Get-MpComputerStatus command in PowerShell. Are you running antivirus software other than Microsoft Defender?

voctotgexp commented 4 months ago

Hi Mike,

Please see below: @.***

I have Crowdstrike.

Thank you

-- Victor Octavianus / Field System Engineer / OTG Mobile: (929) 618-2104 / OTGexp.com

From: Michael Schneider @.> Sent: Monday, April 29, 2024 3:00 PM To: scipag/HardeningKitty @.> Cc: Victor Octavianus @.>; Author @.> Subject: EXT*Re: [scipag/HardeningKitty] Windows defender blocked (Issue #52)

EXT* This email is from outside the company. Use caution & trust the source before clicking links or opening attachments!

Please post the output of the Get-MpComputerStatus command in PowerShell. Are you running antivirus software other than Microsoft Defender?

— Reply to this email directly, view it on GitHubhttps://github.com/scipag/HardeningKitty/issues/52#issuecomment-2083452331, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIFLQGE3L25FF53DIHX3TATY72KD5AVCNFSM6AAAAABG63YDDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGQ2TEMZTGE. You are receiving this because you authored the thread.Message ID: @.**@.>>

0x6d69636b commented 4 months ago

I have tried to replicate the error by installing a different AV engine but Get-MpComputerStatus does not break on my test system. Normally, the try ... catch should prevent your error. Could you please run this command and post the result here:

try { $Output = Get-MpComputerStatus -ErrorAction SilentlyContinue; $Result="SUCCESS" } catch { $Result="FAILED" } $Result