Skip to content

Commit b54798d

Browse files
committed
Allow method registry for users (HKCU) in HailMary mode
1 parent ad35c7a commit b54798d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Invoke-HardeningKitty.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@
10661066
#
10671067
If ($Finding.Method -eq 'Registry' -or $Finding.Method -eq 'RegistryList') {
10681068

1069-
If (-not($IsAdmin)) {
1069+
If (-not($IsAdmin) -and -not($Finding.RegistryPath.StartsWith("HKCU:\"))) {
10701070
$Message = "ID "+$Finding.ID+", "+$Finding.Name+", Method "+$Finding.Method+" requires admin priviliges. Test skipped."
10711071
Write-ProtocolEntry -Text $Message -LogLevel "Error"
10721072
Continue

0 commit comments

Comments
 (0)