You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result obtained by Get-ItemPropertyValue is already a value, and the property cannot be obtained by Select-Object further more. If you want to keep it the same as above, you should use Get-ItemProperty.
The text was updated successfully, but these errors were encountered:
What did you do?
Run
$oldvalue = $(Get-ItemPropertyValue -Path "HKLM:\System\CurrentControlSet\Control\Lsa\OSConfig" -Name 'Security Packages old' | Select-Object -ExpandProperty 'Security Packages old');
What did you expect to happen?
Get $oldvalue
What happened instead?
The result obtained by Get-ItemPropertyValue is already a value, and the property cannot be obtained by Select-Object further more. If you want to keep it the same as above, you should use Get-ItemProperty.
The text was updated successfully, but these errors were encountered: