W2KSG: Page File

In theory Listing 10.19

Get-WmiObject -Class Win32_PageFile | Select CreationDate, Description, Drive, FileName, FileSize, InitialSize, InstallDate, MaximumSize,Name, Path

should return information about the page file. On my Vista machine it doesn’t return anything which is due to my allowing the system to manage the page file I think.

We can see information on page file usage though – Listing 10.20

Get-WmiObject -Class Win32_PageFileUsage | Select AllocatedBaseSize, CurrentUsage, Description, InstallDate, Name, PeakUsage

works nicely even on system managed files.

 


Share this post :

 

Technorati Tags: ,

About these ads
This entry was posted in PowerShell and WMI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s