Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

System information methods

Updated on October 19, 2022

Obtaining system information, such as available memory or the operating system version, can be important when developing automations. For example, you might need to make sure the computer that you are interacting with has sufficient resources, the latest security updates, or the necessary functionality.

The following table describes the methods that are available for system information:

Methods

MethodDescription
GetAvailablePhysicalMemoryRetrieves the number of bytes of free physical memory that is available for the computer.
GetAvailableVirtualMemoryRetrieves the number of bytes of free virtual address space that is available for the computer.
GetOSBuildReturns a string that contains the version of the operating system. For example, 17763.rs5_release.180914-1434.
GetOSNameReturns a string that contains the name of the operating system.
GetTotalPhysicalMemoryRetrieves the total amount of physical memory that is available for the computer.
GetTotalVirtualMemoryRetrieves the total amount of virtual address space that is available for the computer.
is64BitOSThe function returns True if the operating system is 64-bit. Otherwise, it returns False.
GetLastBootupTimeReturns the last boot-up time for the drive.
GetDriveInformation

Returns the drive information in the following format:

/// </summary> /// <param name="drive">Drivename.</param> /// <param name="driveName">Returned drivename.</param> /// <param name="driveTotalSpace">Drive total space in GB.</param> /// <param name="driveAvailableSpace">Drive total available space in GB.</param>

GetProgramFilesLocationReturns the location of program files.
GetSystemInformation

Returns system information in the following format:

/// </summary> /// <param name="machineName">Machine name.</param> /// <param name="osVersion">OS Service package version.</param> /// <param name="osType">OS Type (32 / 64 bit).</param> /// <param name="processorCount">No. of processor.</param> /// <param name="systemMemory">System RAM in GB.</param> /// <param name="driveInfo">Drive information.</param> /// <param name="screenInfo">Monitor Information.</param> /// <param name="ipAddress">Local IP Address.</param>

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us