Returns information about the initial and maximum sizes of all the page files on a computer.

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_PageFileSetting")
For Each $objItem in $colItems
    ? "Caption:" + $objItem.Caption
    ? "Description:" + $objItem.Description
    ? "Initial Size:" + $objItem.InitialSize
    ? "Maximum Size:" + $objItem.MaximumSize
    ? "Name:" + $objItem.Name
    ? "Setting ID:" + $objItem.SettingID
Next