Querying Win32_PageFileSetting results in empty response

Anonymous
2024-11-12T13:57:06+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

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 Server Remote and virtual desktops PowerShell

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2024-11-12T17:56:04+00:00

    [UPDATE]

    Issue resolved.

    I totally forgot that when system managed size is enabled, Win32_PageFileSetting does not report information when enabled.

    0 comments No comments

0 additional answers

Sort by: Most helpful