I need to save one data item in the registry key of a variable. I tried the following with no luck:
$dxVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\DirectX").GetValue("Version",$null)
I want the version number to be stored in a variable, and nothing more. Not a name, just data.
Thanks in advance for your help!
source share