fix for older Powershell versions that don't have Get-ItemPropertyValue cmdlet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user