Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
The Win32_PageFileUsage class enables you to obtain basic information about each page file on a computer, including the allocated file size, the current file size, and the largest size the file has reached since the computer started. This class is useful for routine monitoring of each page file.
As long as the maximum size of the file is less than 70 percent of the allocated size, it is generally safe to assume the page file is correctly configured.
Table 10.11 shows some of the key properties of the Win32_PageFileUsage class.
Table 10.11 Win32_PageFileUsage Properties
Property | Description |
---|---|
AllocatedBaseSize | Actual amount of disk space allocated for use with this page file. This value corresponds to the range established in Win32_PageFileSetting under the InitialSize and MaximumSize properties, set at system startup. |
CurrentUsage | Amount of disk space currently used by the page file. |
Description | Description of the object. |
InstallDate | Date the page file was created. |
Name | Path and file name of the page file. |
PeakUsage | Highest use page file. |
Listing 10.20 contains a script that monitors page file use on a computer. To carry out this task, the script must perform the following steps:
This returns a collection of statistics for each of the page files on the computer.
Listing 10.20 Monitoring Page File Use
|
|
Send us your feedback | « Previous | Next » |