To find what version of PowerShell we have installed, enter this variable:
$PSVersionTable
This lists other components necessary for PowerShell, but it may be more information that we really need. To find just the version of PowerShell, we can use dot notation to tease out the relevant figure:
$PSVersionTable.PSVersion
$PSVersionTAble.PSVersion.MajorVersion
And if necessary, we can pipe this information to the clipboard to paste into other applications or documents:
$PSVersionTable | clip.exe
No comments:
Post a Comment