J
jbm417
Guest
This script:
ps.AddScript(“invoke-command -computer k9sxw -scriptblock{Get-ItemPropertyValue -path HKLM:\SOFTWARE\Microsoft\‘Windows NT’\CurrentVersion\ -Name EditionID}”)
actually returns results from path:
HKLM:\SOFTWARE\\WOW6432Node\Microsoft\‘Windows NT’\CurrentVersion\
when run in VS2019 Community ver 16.7.6 .Net Framework 4.8.04084 using: Collection <PSObject> results = ps.Invoke();
However this script returns results from correct registry path when run in Powershell PS ISE version 5.1 build 19041
I expect results from the specified path - not from some other path.
Continue reading...
ps.AddScript(“invoke-command -computer k9sxw -scriptblock{Get-ItemPropertyValue -path HKLM:\SOFTWARE\Microsoft\‘Windows NT’\CurrentVersion\ -Name EditionID}”)
actually returns results from path:
HKLM:\SOFTWARE\\WOW6432Node\Microsoft\‘Windows NT’\CurrentVersion\
when run in VS2019 Community ver 16.7.6 .Net Framework 4.8.04084 using: Collection <PSObject> results = ps.Invoke();
However this script returns results from correct registry path when run in Powershell PS ISE version 5.1 build 19041
I expect results from the specified path - not from some other path.
Continue reading...