PowerShell for Windows Admins

Jul 18 2010   12:03PM GMT

Page File information

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

A simple function to retrieve page file details

function Get-PageFile {
        Get-WmiObject -Class Win32_PageFileUsage  -ComputerName $computer |
        Select  @{Name="File";Expression={ $_.Name }},
        @{Name="Base Size(MB)"; Expression={$_.AllocatedBaseSize}},
        @{Name="Peak Size(MB)"; Expression={$_.PeakUsage}},
        @{Name="Install Date";Expression={ $_.ConvertToDateTime( $_.InstallDate) }},

I’ve just modified the labels on the properties to emphasise the units of measurement for the sizes

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: