diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1 index 072b03e..d82d4d5 100644 --- a/Privesc/PowerUp.ps1 +++ b/Privesc/PowerUp.ps1 @@ -2847,7 +2847,7 @@ function Get-ModifiableRegistryAutoRun { $Path = $($Keys.GetValue($Name)) - $Path | Get-ModifiablePath | ForEach-Object { + $Path | where-Object $_ -contains '\' | Get-ModifiablePath | ForEach-Object { $Out = New-Object PSObject $Out | Add-Member Noteproperty 'Key' "$ParentPath\$Name" $Out | Add-Member Noteproperty 'Path' $Path