
You can use below command to determine the current version of the Windows PowerShell.
You can try each of the command below but some commands may not work as it may not yet been introduced in your current installed PowerShell.
Using command $psversiontable
PS C:> $psversiontable
Name Value
—- —–
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.19170
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
Using command &get-host
PS C:> &get-host
Name : ConsoleHost
Version : 4.0
InstanceId : 11w231b6-6rf8-4f62-b797-3e545fgc7uj
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-MY
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Using Registry Editor
Open the Registry Editor. Navigate to HKEY_LOCAL_MACHINE – SOFTWARE – Microsoft – PowerShell – 1 – PowerShellEngine.


