Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Using variable with Get-itemproperty

$
0
0

When I use variable to take list of "Uninstall" registry's subkeys, I am getting en error as given below.

get-Itemproperty : Cannot find path 'HKLM:\@{Name=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WINDOWS\CurrentVersion\Uninstall\XXXXX}' because it does not exist.

I have already tried Set-Location command as suggested in the following URL.

https://social.technet.microsoft.com/Forums/en-US/7815857c-c42d-4514-b13e-c3503cfa4762/powershell-cannot-find-path-to-hklm-because-it-does-not-exist?forum=winserverpowershell

Please help.

Regards, Ravi.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>