PowerUp.ps1:2850 - Filter Out Null/Blank Output
Added "where-Object $_ -contains '\'" to prevent null or blank output from being passed to Get-ModifiablePath
This commit is contained in:
parent
c7985c9bc3
commit
794a93e150
|
|
@ -2847,7 +2847,7 @@ function Get-ModifiableRegistryAutoRun {
|
||||||
|
|
||||||
$Path = $($Keys.GetValue($Name))
|
$Path = $($Keys.GetValue($Name))
|
||||||
|
|
||||||
$Path | Get-ModifiablePath | ForEach-Object {
|
$Path | where-Object $_ -contains '\' | Get-ModifiablePath | ForEach-Object {
|
||||||
$Out = New-Object PSObject
|
$Out = New-Object PSObject
|
||||||
$Out | Add-Member Noteproperty 'Key' "$ParentPath\$Name"
|
$Out | Add-Member Noteproperty 'Key' "$ParentPath\$Name"
|
||||||
$Out | Add-Member Noteproperty 'Path' $Path
|
$Out | Add-Member Noteproperty 'Path' $Path
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue