fix for older Powershell versions that don't have Get-ItemPropertyValue cmdlet

This commit is contained in:
2021-07-29 17:59:51 -04:00
parent 6452ed4508
commit c2665c2f10
+1 -1
View File
@@ -31,7 +31,7 @@ Function Test-ItemProperty {
Function Get-ItemPropertyInfo {
param([Parameter(Mandatory=$true)][string]$Path,[Parameter(Mandatory=$true)][string]$Name)
If ( Test-ItemProperty -Path $Path -Name $Name ) {
$retval = Get-ItemPropertyValue -Path $Path -Name $Name
$retval = $(Get-ItemProperty -Path $Path).$Name
$retval = $retval -replace ",", " "
## Additional processing for specific properties