Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions Links


SQL Server DBA Jobs

Find Windows pagefile location through command line and wmic

03 July,2015 by Tom Collins

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



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: Tom Collins (


Verify your Comment

Previewing your Comment

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

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.


Post a comment on Find Windows pagefile location through command line and wmic | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer