CodexBloom - Programming Q&A Platform

PowerShell 7.3 - guide with Retrieving Specific Registry Keys for Installed Applications

๐Ÿ‘€ Views: 43 ๐Ÿ’ฌ Answers: 1 ๐Ÿ“… Created: 2025-07-05
powershell registry windows PowerShell

I'm trying to retrieve specific registry keys for installed applications on a Windows 10 machine using PowerShell 7.3. My goal is to get the installation path and version of each application. I expected to access these details through the `Get-ItemProperty` cmdlet, targeting the `HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall` path. Hereโ€™s what Iโ€™ve written: ```powershell $apps = Get-ItemProperty 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' $apps | Select-Object DisplayName, InstallLocation, DisplayVersion ``` However, when I run this script, I encounter the following behavior: ``` Get-ItemProperty : want to find path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' because it does not exist. ``` Iโ€™ve confirmed that the registry path exists by checking it through regedit. Furthermore, I have the necessary permissions to access these registry entries. I even tried running PowerShell as an administrator, but I still get the same behavior. Iโ€™ve also attempted to specify the path directly without the wildcard asterisk, but the output is empty. Iโ€™ve run this script on a different Windows 10 machine with the same configuration, and it works there. Could this be an scenario with my current machine's registry permissions or a specific setting in PowerShell? Any guidance on how to resolve this would be greatly appreciated! How would you solve this?