Find Windows pagefile location through command line and wmic

03 July,2015 by Jack Vamvas

Question: How can I find the Windows pagefile location through the command line? I don’t have access to a GUI on a server and need to identify the pagefile.

 Answer: It is possible to utilise the wmic  - (Windows Management Instrumentation Command-line). This command will list some basic information about the pagefile – such as : Current usage, pagefile location, Peak Usage,Pagefile size

wmic pagefile list /format:list

You could also use the Powershell invoke-expression cmdlet, to execute the wmic command

invoke-expression "wmic pagefile list /format:list"

Another way of returning the pagefile location through Powershell is


Get-WmiObject Win32_PageFileusage | Select-Object Name

 

Pagefile

Read More on Windows and pagefile

Windows Pagefile size for dedicated SQL Servers - SQL Server DBA

SQL Server - Windows Virtual memory and paging file location ...

 

 

 


Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on Find Windows pagefile location through command line and wmic


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer