|

ResultVariable


When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.


See also: Related Actions


image

image

System.GetOSVersionInfo

OverviewExamples

table System.GetOSVersionInfo ( )


De s cr ip t ion


Returns a table containing the version information of the operating system the user is running.


P arame t er s


None.


Re t u r n s


(table) A table containing the OS version information indexed by version categories.



KEY


TYPE DESCRIPTION


MajorVersion


string


The major version number of the OS. If the version was 5.00.2195, "5" would be returned.


MinorVersion


string


The minor version number of the OS. If the version was 5.00.2195, "0" would be returned.


BuildNumber


string


The build number of the OS version. If the version was 5.00.2195, "2195" would be returned.



PlatformId


string


Returns "1" if the OS is non_NT based (Windows 95, 98, ME) and "2" if the OS is NT based (Windows NT 4, 2000, XP, Vista, Server "Longhorn," Windows 7, Windows Server 2008, Windows Server 2008 R2).


CSDVersion


string


The name of the most recently installed service pack for the OS, such as "Service Pack 3."


Additional table values are available for the following client and server operating systems:

Client: Windows 7, Windows Vista, Windows XP, Windows 2000 Professional, or Windows NT Workstation

4.0 SP6 and later.

Server: Requires Windows Server 2008, Windows Server 2008 R2, Windows Server "Longhorn", Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP6 and later.


image

Note: If the target operating system is not one of the above mentioned client or server operating systems, -1 will be returned for keys of type number and false for keys of type boolean.



KEY


TYPE DESCRIPTION


ServicePackMajor


number


The major version number of the latest Service Pack installed on the system. For example, for Service Pack 3, the major version number is 3. If no Service Pack has been installed, the value is zero.


ServicePackMinor


number


The minor version number of the latest Service Pack installed on the system. For example, for Service Pack 3, the minor version number is 0.


ProductType


number


One of the numeric values "1", "2" or "3" will be returned. These values are defined as follows:

1 - The system is running Windows 7, Windows Vista, Windows XP Professional, Windows XP Home Edition, Windows 2000 Professional, or Windows NT 4.0 Workstation.


2 - The system is a domain controller and is Windows Server 2008, Windows Server 2003, or Windows 2000 Server.


3 - The system is a server and is either Windows Server 2008, Windows Server 2003 or Windows 2000 Server.


BackOffice


boolean


Whether or not Microsoft BackOffice components are installed. If they are installed the value true is returned. If they are not installed, false is returned.


Blade


boolean


Whether or not Windows Server 2003, Web Edition is installed. If it is installed the value true is returned. If it is not installed, false is returned.



ComputeServer


boolean


Whether Windows Server 2003, Compute Cluster Edition is installed.


DataCenter


boolean


Whether or not Windows Server 2008 Datacenter Edition, Windows Server 2003, Datacenter Edition or Windows 2000 Datacenter Server is installed. If one of them is installed, the value true is returned. If none are installed, false is returned.


Enterprise


boolean


Whether or not Windows Server 2008 Enterprise Edition, Windows Server 2003 Enterprise Edition, Windows 2000 Advanced Server, or Windows NT 4.0 Enterprise Edition, is installed. If one of them is installed, the value true is returned. If none are installed, false is returned.


EmbeddedNT