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"
Read More on Windows and pagefile