Converting VBScript's ScriptEngineBuildVersion Function

Windows PowerShell

Definition: Returns the build version number of the scripting engine in use.


You’re right about that: it can be useful to know which build of Windows PowerShell you happen to be running. Fortunately you can determine that simply by calling the Get-Host Cmdlet and then taking a peek at the value of the Version.Build property:

$a = (get-host)

When you run this command and then echo back the value of $a you should get the following, depending on which build you are using:


Return to the VBScript to Windows PowerShell home page