We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On at least Windows 10 20H2 (19042.1110), Get-WmiObject Win32_ShadowStorage returns $null when shadow copies are not configured and none exist.
Get-WmiObject Win32_ShadowStorage
This lead to $fixed = $false, when in fact the issue is fixed.
$fixed = $false
Recommend updating to the following:
#check shadow if ($vulnerable -eq $true) { $checkShadow = Get-WmiObject Win32_ShadowStorage -Property UsedSpace | Select-Object -ExpandProperty UsedSpace if ((0 -eq $checkShadow) -or ($null -eq $checkShadow)) { $shadowSucces = $true Write-Host "Successfully deleted old volume shadow copies." } else { $shadowSucces = $false write-host "Shadow deletion failed. Security software may be blocking this action or check running permissions." } }
HiveNightmare/Mitigation.ps1
Line 40 in 0428053
The text was updated successfully, but these errors were encountered:
Ooops, good shout, this will need fixing.
Sorry, something went wrong.
No branches or pull requests
On at least Windows 10 20H2 (19042.1110),
Get-WmiObject Win32_ShadowStorage
returns $null when shadow copies are not configured and none exist.This lead to
$fixed = $false
, when in fact the issue is fixed.Recommend updating to the following:
HiveNightmare/Mitigation.ps1
Line 40 in 0428053
The text was updated successfully, but these errors were encountered: