Get PowerShell Version
This object returns the current PowerShell version information.
Privileges
Normal
Input Parameters
None
Output Parameters
Name | Type | Description |
---|---|---|
Full Version Information |
String |
This includes the full version information in one concatenated field. |
Major Release | Number | This is the major release of PowerShell. This is commonly referred to as “PowerShell 3”, “PowerShell 4", etc. |
Minor Release | Number | This is the minor release/service pack for the installed PowerShell version. |
Build Number | Number | This is the build number that is installed. |
Revision | Number | This is the revision number that is installed. |
Result |
Number |
Returns a success value of zero or any value other than zero to indicate failure. |
Result String | String | Object execution error details. |
Example Input Parameters
No input parameters required.
Example Output Parameters
Name | Type | Example |
---|---|---|
Full Version Information |
String |
5.1.17134.228 |
Major Release | Number | 5 |
Minor Release | Number | 1 |
Build Number | Number | 17134 |
Revision | Number | 228 |