Update Get-IncludedApps.ps1
Updated Get-IncludedApps to work correctly with GPO source.pull/580/head
parent
608c0e95ca
commit
7bbc406706
|
@ -10,12 +10,10 @@ function Get-IncludedApps {
|
||||||
|
|
||||||
$ValueNames = (Get-Item -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\WhiteList").Property
|
$ValueNames = (Get-Item -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\WhiteList").Property
|
||||||
|
|
||||||
|
$AppIDs = @()
|
||||||
|
|
||||||
foreach ($ValueName in $ValueNames) {
|
foreach ($ValueName in $ValueNames) {
|
||||||
$AppIDs = [Microsoft.Win32.Registry]::GetValue($Key, $ValueName, $false)
|
$AppIDs += (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\WhiteList" -Name $ValueName)
|
||||||
[PSCustomObject]@{
|
|
||||||
Value = $ValueName
|
|
||||||
Data = $AppIDs.Trim()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue