Export (0) Print
Expand All
Expand Minimize

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).version.build

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft