Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Converting VBScript's ScriptEngineMinorVersion Function

Windows PowerShell

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


As you might expect, if you can use Windows PowerShell to determine the major version of the product you can also use it to determine the minor version. In fact, all you have to do is call the Get-Host Cmdlet and take a look at the value of the Version.Minor property. This command returns the minor version and stores it in the variable $a:

$a = (get-host).version.minor

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


Return to the VBScript to Windows PowerShell home page

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.