Querying Win32_PageFileSetting results in empty response

Krasimir Rangelov 120 Reputation points
2024-11-12T14:24:48.2033333+00:00

I am trying to query some information from Win32_PageFileSetting WMI class and I am unable to gather any kind of information.

I tried on multiple versions of PowerShell including:

  • Major 5, Minor 1, Build 22621, Revision 4249
  • Major 5, Minor 1, Build 19041, Revision 5007
  • Major 5, Minor 1, Build 14393, Revision 7254
  • Major 5, Minor 1, Build 20348, Revision 2400
  • Major 5, Minor 1, Build 26100, Revision 1591

The version that it worked is:

  • Major 5, Minor 1, Build 17763, Revision 6414

All of the commands were executed with administrative permissions.

I've included -Property * option as well, tried storing it inside a variable, after checking it with Get-Member it results in null error.

Querying with WQL results in empty response as well.

When executed from WMIC it results into No instance(s) available. The systems have page files.

Currently tried on multiple devices: From Server 2016 to Server 2025, Windows 10 and 11.

Is anyone else aware of this issue?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,866 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,416 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,205 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,580 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,693 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,471 Reputation points
    2024-11-12T16:12:27.99+00:00

    I'm not sure if this is relevant, but is the pagefile automatically managed, or is it being managed by setting specific values?

    If it's automatically managed I don't think you'll get anything from the Win32_PageFileSetting class.

    You can check the state of the page file like this:

    $computer = Get-WmiObject Win32_computersystem -EnableAllPrivileges
    $computer.AutomaticManagedPagefile
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.