title: How do I get the value of a registry key and ONLY the value using powershell
body: <p>Can anyone help me pull the value of a registry key and place it into a variable in PowerShell?  So far I have used <code>Get-ItemProperty</code> and <code>reg query</code> and although both will pull the value, both also add extra text.  I need just the string text from the registry key and ONLY the string text from the key.  I'm sure I could create a function to strip off the extra text but if something changes (i.e. reg key name) it might affect this.</p>