Difference between revisions of "Getting Started (PowerShell)"

Jump to navigation Jump to search
m (→‎Installed Version: Additional version source)
Line 24: Line 24:


== Installed Version ==
== Installed Version ==
To check the main installed version use the following command...
To check the main installed version use '''either''' of the following command lines...
<source lang="powershell"> get-host | select version </source>
<source lang="powershell">
Get-Host | Select version     
$host.version
</source>
 
However, if you might have installed something other than the normal RTM or GA release version you'll need to the registry key <code>HKLM\Software\Microsoft\PowerShell\1</code>, which will have the following values of interest...
However, if you might have installed something other than the normal RTM or GA release version you'll need to the registry key <code>HKLM\Software\Microsoft\PowerShell\1</code>, which will have the following values of interest...
{|class="vwikitable"
{|class="vwikitable"
Line 31: Line 35:
! Value                !! Data                                !! Meaning
! Value                !! Data                                !! Meaning
|-
|-
|<code> Install </code> || <code>1</code>                      || Installed (not version number)
|<code> Install </code> || <code>1</code>                      || Installed (not version number - Microsoft may have intended this to be a version marker at inception, but it is not used as such)
|-
|-
|<code> PID </code>    || <code>89383-100-0001260-04309</code> || RTM (Release to Manufacturing)
|<code> PID </code>    || <code>89383-100-0001260-04309</code> || RTM (Release to Manufacturing)