Nov 26, 2026 DISPATCH // HARDWARE, CODE & PLATFORMS

Set Windows 11 Paging-File Size Without RAM Guesswork

Windows 11 can size the paging file automatically or use values you set for a selected lead. Administrative authorization is required, and the change takes effect after a restart.
Set Windows 11 Paging-File Size Without RAM Guesswork Nerds Magazine © nerdsmagazine.com
Set Windows 11 Paging-File Size Without RAM Guesswork © nerdsmagazine.com

Clicking Set saves a paging-file configuration, but Windows does not use the new allocation until the PC restarts. You need administrative authorization. Save your work, close the settings dialogs, then restart.

Choose automatic or custom paging-file sizing

Open Start > Settings > System > About. Select Advanced system settings. In System Properties, open Advanced, then select Settings under Performance. In Performance Options, open Advanced and select Change under Virtual memory.

Windows manages paging-file size by default. To restore automatic allocation across drives, check Automatically manage paging file size for all drives. Select OK, then close the remaining dialogs with OK, using Apply where available. Restart to apply the setting.

To let Windows size the file on one lead, clear Automatically manage paging file size for all drives. Select the lead, choose System managed size, then click Set. Close the dialogs and restart. For a manual allocation, choose Custom size for the selected lead and enter both Initial size (MB) and Maximum size (MB). The maximum must be at least as large as the initial value. Enter the same value in both fields to set a fixed allocation.

Microsoft says sizing depends on peak committed memory and crash-dump requirements. Installed RAM alone does not establish a universal paging-file size, and a rule such as 1.5 to 3 times RAM is not a general recommendation. One Microsoft troubleshooting case recorded an allocated size of 8192 MB for C:\pagefile.sys. That figure applies to the case, not to every PC. Without a workload-specific size in mind, leave automatic management enabled.

Windows also uses the paging file to handle system crash dumps. Disabling it or setting it too low can prevent diagnostic data from being written. A volmgr Event ID 46 entry is labeled "Crash dump initialization failed!" Check dump and paging-file settings if it appears.

You can configure paging files on other suitable local drives by choosing System managed size or entering custom values for each lead. Existing allocations stay in place unless you change them. Removing the allocation on the system lead can conflict with crash-dump requirements, so keep it unless those requirements are covered. Disabling every paging file lowers the commit limit, can restrict application capacity, and may prevent crash-dump creation. To undo manual sizing, restore automatic management and restart.

If Windows does not create a dump after a crash, check the System log in Event Viewer. Compare unexpected-restart Event ID 41 records with nearby volmgr errors. A missing dump alone does not establish the cause of a crash. Microsoft troubleshooting guidance also identifies third-party drivers and hardware problems among common causes of stop errors. Dump analysis can begin once a dump is available.

Open the controls another way or use PowerShell

Press Windows + R, enter SystemPropertiesAdvanced, then press Enter. Select Settings under Performance, followed by Advanced and Change under Virtual memory. The command sysdm.cpl opens System Properties through Run; follow the same tabs from there. You can also search Start for Advanced system settings. If your keyboard has a Pause basic, Windows + Pause opens Settings > System > About.

For command-line management, open Windows PowerShell with Run as administrator. Run this command to allow automatic management:

  • Get-CimInstance -ClassName Win32_ComputerSystem | Set-CimInstance -Property @{AutomaticManagedPagefile=$true}

    For manual configuration, replace $true with $false before running the command. Once automatic management is disabled, inspect configured entries with:

  • Get-CimInstance -ClassName Win32_PageFileSetting

    An automatically managed configuration may not expose an existing entry. If an entry for C:\pagefile.sys exists, this command changes its sizes. Replace the example values with the amounts you choose:

  • Get-CimInstance -ClassName Win32_PageFileSetting | Where-Object Name -eq 'C:\pagefile.sys' | Set-CimInstance -Property @{InitialSize=4096;MaximumSize=8192}

    Those example values are not recommendations. If no entry exists, set the allocation through Custom size in the virtual memory dialog. To remove a configured allocation, retrieve its instance and pipe it to Remove-CimInstance. These operations require administrative privileges and the SeCreatePagefilePrivilege permission. Restart after changing the configuration; the new allocation takes effect at the next startup.

Manage permissions and encryption

On Windows 11 Pro, Enterprise, Education, and applicable IoT editions, security policy controls who can create or resize paging files. Open secpol.msc and go to Local Policies > User Rights Assignment > Create a pagefile. This setting does not determine the paging file's size. Administrators can also set the right through Group Policy at Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment > Create a pagefile. For MDM, use UserRights/CreatePageFile.

To control whether Windows clears the pagefile at shutdown, open secpol.msc and select Local Policies > Security Options > Shutdown: Clear virtual memory pagefile. Choose Enabled or Disabled, then select OK. Enabling this setting can lengthen shutdown. Its Group Policy location is under Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. For MDM, configure ./Device/Vendor/MSFT/Policy/Config/LocalPoliciesSecurityOptions/Shutdown_ClearVirtualMemoryPageFile with integer 1 to allow clearing or 0 to disable it.

Paging-file encryption changes protection, not capacity. Open Command Prompt with Run as administrator and check the setting with fsutil behavior query encryptpagingfile. Allow encryption with fsutil behavior set encryptpagingfile 1, or disable it with fsutil behavior set encryptpagingfile 0. Restart after changing the setting.

On Windows 11 Pro, Enterprise, Education, and applicable IoT editions, Group Policy also includes Computer Configuration > Administrative Templates > System > Filesystem > NTFS > Allow NTFS pagefile encryption. Choose Enabled or Disabled, then select Apply and OK. The MDM policy is ./Device/Vendor/MSFT/Policy/Config/ADMX_FileSys/EnablePagefileEncryption and requires the documented ADMX-backed SyncML format.

  • A separate tool is not required. Windows includes desktop controls and PowerShell for paging-file management.
  • Graphics memory and WSL limits are separate settings. Paging-file allocation does not control graphics memory or VM and WSL memory limits. Browser memory-saving features and BIOS virtualization switches also control different things.
  • Older WMIC instructions no longer apply. Microsoft has removed WMIC from current supported Windows 11 versions, and it is no longer available as a Feature on Demand. WMI remains supported. Use PowerShell with CIM cmdlets or the desktop controls.
  • Windows Server registry recipes are not Windows 11 procedures. Use the desktop controls or PowerShell for Windows 11. Server and hardware-testing registry recipes do not establish a procedure for Windows 11 consumers.

System crash dumps and application crash dumps use separate configuration paths. Windows Error Reporting LocalDumps settings such as DumpType values 1 for a minidump and 2 for a full dump apply to application dumps, not system paging-file size. Microsoft's LocalDumps guidance describes these application-specific settings.

Topics:
Tech Guides Tech Explainers #Windows 11 #Memory & Storage Technologies #Operating System Management & Utilities
Ethan Cole Editor Nerds Magazine
Editor

Ethan Cole

Ethan Cole is an Editor at NerdsMagazine covering software, Windows, gaming, PC hardware, and practical troubleshooting. He focuses on clear explanations, dependable fixes, and helping readers understand when a problem can be solved without unnecessary upgrades or replacement.