Virtualization Manage Virtual Memory Paging File in Windows 11

  • Thread starter Thread starter Brink
  • Start date Published: Start date Updated Updated:

Virtual_Memory_banner.png

This tutorial will show you how to manage the virtual memory paging file for each drive on your Windows 10 and Windows 11 PC.

A paging file (aka: "page file" and "virtual memory") enables the system to remove infrequently accessed modified data from physical memory to let the system use physical memory more efficiently for more frequently accessed data.

Windows also uses the page file to store data when physical memory (RAM) is full.

The system automatically manages the size of the paging file ("C:\pagefile.sys") on the Windows drive by default.

However, there may be times you may need to manually manage the paging file. For example:
  • If the C: drive that Windows is installed on is small in size, you may wish to remove the paging file from that drive, and add a paging file to another drive with more space instead.
  • If you use a lot of memory, then you may wish to add a paging file to another drive to have available if needed.
  • If you don't use a lot of memory and your paging file is large in size, you may wish to use a smaller custom size.
  • If you are getting a BSOD PAGE_FAULT_IN_NONPAGED_AREA or KERNEL_DATA_INPAGE_ERROR or Low Memory type error when the paging file size is not system managed, you may need to set a larger custom size for the paging file.
References:


You must be signed in as an administrator to manage the paging file.



Contents

  • Option One: Set Paging File Size for All Drives to be Automatically Managed
  • Option Two: Add or Set Paging File Size for Specific Drive to be System Managed
  • Option Three: Add or Set Custom Paging File Size for Specific Drive
  • Option Four: Remove Paging File for Specific Drive
  • Option Five: Set Paging File Size for All Drives to be Automatically Managed using Command
  • Option Six: Set Custom Paging File Size for Specific Drive using Command




Option One

Set Paging File Size for All Drives to be Automatically Managed


This is the default setting.


1 Open System Properties (SystemPropertiesAdvanced.exe).

2 Click/tap on Settings under the Performance section. (see screenshot below)

System_Properties-1.png

3 Click/tap on the Advanced tab, and click/tap on Change under the Virtual memory section. (see screenshot below)

System_Properties-2.png

4 Check Automatically manage paging file size for all drives, and click/tap on OK. (see screenshot below)

This will be applied to each drive you have set a paging file for.


Automatically_manage_paging_file_size_for_all_drives.png

5 Click/tap on OK. (see screenshot below)

System_Properties-3.png

6 Click/tap on OK. (see screenshot below)

System_Properties-4.png

7 Click/tap on OK. (see screenshot below)

System_Properties-5.png

8 Click/tap on Restart Now when ready to restart the computer to apply. (see screenshot below)

System_Properties-6.png




Option Two

Add or Set Paging File Size for Specific Drive to be System Managed


This option is good when you only want the paging file size for specific drive(s) to be system managed instead of for all drives.


1 Open System Properties (SystemPropertiesAdvanced.exe).

2 Click/tap on Settings under the Performance section. (see screenshot below)

System_Properties-1.png

3 Click/tap on the Advanced tab, and click/tap on Change under the Virtual memory section. (see screenshot below)

System_Properties-2.png

4 Uncheck Automatically manage paging file size for all drives, and click/tap on OK. (see screenshot below step 8)

5 Select the drive (ex: "C") with a paging file or to add a paging file you want its size to be system managed. (see screenshot below step 8)

6 Select (dot) System managed size. (see screenshot below step 8)

7 Click/tap on the Set button. (see screenshot below step 8)

8 Click/tap on OK. (see screenshot below)

System_managed_size.png

9 Click/tap on OK. (see screenshot below)

System_Properties-3.png

10 Click/tap on OK. (see screenshot below)

System_Properties-4.png

11 Click/tap on OK. (see screenshot below)

System_Properties-5.png

12 Click/tap on Restart Now when ready to restart the computer to apply. (see screenshot below)

System_Properties-6.png




Option Three

Add or Set Custom Paging File Size for Specific Drive


1 Open System Properties (SystemPropertiesAdvanced.exe).

2 Click/tap on Settings under the Performance section. (see screenshot below)

System_Properties-1.png

3 Click/tap on the Advanced tab, and click/tap on Change under the Virtual memory section. (see screenshot below)

System_Properties-2.png

4 Uncheck Automatically manage paging file size for all drives, and click/tap on OK. (see screenshot below step 9)

5 Select the drive (ex: "C") with a paging file or to add a paging file you want to set a custom size for. (see screenshot below step 9)

6 Select (dot) Custom size. (see screenshot below step 9)

7 Enter the Initial size (minimal) you want in MB (1024 MB = 1 GB) for the paging file on the selected drive. (see screenshot below step 9)

8 Enter the Maximum size you want in MB (1024 MB = 1 GB) for the paging file on the selected drive. (see screenshot below step 9)

9 Click/tap on the Set button. (see screenshot below)

Custom_paging_file_size-1.png

10 If prompted, click/tap on Yes to confirm. (see screenshot below)

Custom_paging_file_size-2.png

11 Click/tap on OK. (see screenshot below)

Custom_paging_file_size-3.png

12 Click/tap on OK. (see screenshot below)

System_Properties-3.png

13 Click/tap on OK. (see screenshot below)

System_Properties-4.png

14 Click/tap on OK. (see screenshot below)

System_Properties-5.png

15 Click/tap on Restart Now when ready to restart the computer to apply. (see screenshot below)

System_Properties-6.png




Option Four

Remove Paging File for Specific Drive


1 Open System Properties (SystemPropertiesAdvanced.exe).

2 Click/tap on Settings under the Performance section. (see screenshot below)

System_Properties-1.png

3 Click/tap on the Advanced tab, and click/tap on Change under the Virtual memory section. (see screenshot below)

System_Properties-2.png

4 Uncheck Automatically manage paging file size for all drives, and click/tap on OK. (see screenshot below step 9)

5 Select the drive (ex: "C") with a paging file you want to remove. (see screenshot below step 9)

6 Select (dot) No paging file. (see screenshot below step 7)

7 Click/tap on the Set button. (see screenshot below)

No_paging_file-1.png

8 If prompted, click/tap on Yes to confirm. (see screenshot below)

Custom_paging_file_size-2.png

9 Click/tap on OK. (see screenshot below)

No_paging_file-2.png

10 Click/tap on OK. (see screenshot below)

System_Properties-3.png

11 Click/tap on OK. (see screenshot below)

System_Properties-4.png

12 Click/tap on OK. (see screenshot below)

System_Properties-5.png

13 Click/tap on Restart Now when ready to restart the computer to apply. (see screenshot below)

System_Properties-6.png




Option Five

Set Paging File Size for All Drives to be Automatically Managed using Command


This is the default setting.

This command does the same as Option One.


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the appropriate command below into Terminal (Admin), and press Enter. (see screenshot below)

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

OR​

Command Prompt
powershell -command "Get-CimInstance -ClassName Win32_ComputerSystem | Set-CimInstance -Property @{AutomaticManagedPagefile=$true}"

Automatically_manage_paging_file_size_for_all_drives_command.webp

3 Close Terminal (Admin).

4 Restart the computer to apply.




Option Six

Set Custom Paging File Size for Specific Drive using Command


This option does the same as Option Three.


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the appropriate command below into Terminal (Admin), and press Enter. (see screenshot below)

Windows PowerShell
Get-CimInstance -ClassName Win32_ComputerSystem | Set-CimInstance -Property @{AutomaticManagedPagefile=$false}

OR​

Command Prompt
powershell -command "Get-CimInstance -ClassName Win32_ComputerSystem | Set-CimInstance -Property @{AutomaticManagedPagefile=$false}"

Custom_paging_file_size_command-1.webp

3 Copy and paste the appropriate command below into Terminal (Admin), and press Enter. (see screenshot below step 4)

Windows PowerShell
Get-CimInstance Win32_PageFileUsage | Format-List *

OR​

Command Prompt
powershell -command "Get-CimInstance Win32_PageFileUsage | Format-List *"

4 Make note of the paging file Name (ex: "C:\pagefile.sys") you want to set a custom size for. (see screenshot below)

Custom_paging_file_size_command-2.webp

5 Type the appropriate command below into Terminal (Admin), and press Enter. (see screenshot below)

Windows PowerShell
Get-CimInstance -ClassName Win32_PageFileSetting -Filter "Name='<paging file name>'" | Set-CimInstance -Property @{InitialSize=<min size>; MaximumSize=<max size>}

OR​

Command Prompt
powershell -command "Get-CimInstance -ClassName Win32_PageFileSetting -Filter "Name='<paging file name>'" | Set-CimInstance -Property @{InitialSize=<min size>; MaximumSize=<max size>}"

Substitute <paging file name> in the command above with the actual paging file Name (ex: "C:\pagefile.sys") from step 4 with a double backslash (ex: "C:\\pagefile.sys").

Substitute <min size> with the actual initial size in MB you want for the paging file size.

Substitute <max size> with the actual maximum size in MB you want for the paging file size.

For example:
Get-CimInstance -ClassName Win32_PageFileSetting -Filter "Name='C:\\pagefile.sys'" | Set-CimInstance -Property @{InitialSize=800; MaximumSize=2924}


Custom_paging_file_size_command-3.webp

6 Close Terminal (Admin).

7 Restart the computer to apply.


That's it,
Shawn Brink


 
Last edited:
Please note, according the the official documentation the WMIC command line utility is deprecated. Here is an example PowerShell script (it needs to be run as an Administrator to work) that unchecks the Automatically manage paging file size for all drives checkbox at the top, removes the paging file for drive D: and sets the paging file for drive C: to system managed.
Powershell:
#untick the checkbox at the top
gwmi Win32_ComputerSystem -EnableAllPrivileges |%{$_.AutomaticManagedPagefile=$False;$_.Put()} |Out-Null
#remove pagefile for drive D:
(gwmi win32_pagefilesetting |?{$_.name="D:\pagefile.sys"}).Delete()
#set pagefile for drive C: to system managed
swmi -Class Win32_PageFileSetting -Arguments @{name="C:\pagefile.sys";InitialSize=0;MaximumSize=0} -EnableAllPrivileges |Out-Null

(Remember to restart the computer next for these changes to apply; also remember that any changes having been made to these settings from within Powershell in this manner will not be visible in Options One/Two/Three/Four of this tutorial until after the computer has been restarted.)

To view the current settings with Powershell:
Powershell:
Get-CimInstance Win32_PageFileUsage |fl *
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
    Antivirus
    What's an antivirus?
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
Please note, according the the official documentation the WMIC command line utility is deprecated.

Luckily the WMIC still works since it's only deprecated and not removed.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Luckily the WMIC still works since it's only deprecated and not removed.

Yeah, but after 2 whole years of it having been deprecated, I was thinking maybe now would be an excellent time to throw in at least some info about that which supersedes it. lol
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
    Antivirus
    What's an antivirus?
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
Yeah, but after 2 whole years of it having been deprecated, I was thinking maybe now would be an excellent time to throw in at least some info about that which supersedes it. lol

:shawn:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Questions:
1. Why not let Win11 do it? Pros/Cons?
2. If a person chooses to change Win11 default, what are the considerations to be used in making that decision?

My situation:
Memory: 32 GB (recently upgraded from 16GB)
C:\ drive: Samsung 990 Pro SSD 1TB PCIe 4.0 M.2 2280 SSD (recently upgraded from original 256Gb SSD)
I used Macrium Reflect to clone the old ssd onto the new one, then swapped the new one in. Have not seen any problems.
I also have two other internal SATA drives of 1Tb and 4Tb respectively.
I have two USB 3.0 external drives of 4Tb and 5Tb; they are not actively used, only to store backups.

Advanced System Settings shows a pagefile on C:/ recommended size 4967 Mb, of current size approx 21GB for all drives.
Everything.exe shows a pagefile.sys on C: only when I right-click and "Open Path", I cannot see it, though I have 'show hidden files' on.
I'm "told" that the page file will be at the root of the OS Drive.
However, if I open a command window as administrator it opens to c:\windows\system32.
I do a cd .. and a cd .. to get to C:/> prompt and DIR shows no pagefile.sys
Is my not finding it merely "operator error"?

So, ....
1. where's my page file? (I'd certainly think I'd want it on my new SSD)
2. any reason for me not to let Win11 manage it? I am not looking to change things; mostly just curious.

thanks,
-ceej
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
OK, I had "Show Hidden files and folders"
But : "Hide protected system files and folders" was still checked
I unchecked it and there were the pagefile and hyberfile on root of C: drive.
#1 solved ==> operator error
What about #2?
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
OK, I had "Show Hidden files and folders"
But : "Hide protected system files and folders" was still checked
I unchecked it and there were the pagefile and hyberfile on root of C: drive.
#1 solved ==> operator error
What about #2?
Hello, :alien:

Usually, it is best to let Windows 11 manage the paging file. It'll automatically increase it if needed. Windows 11 does a lot better job than W7/8/10. I suppose if you are extremely low on disk space, it may be a reason to manually manage the paging file to reduce its size.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
OK, I had "Show Hidden files and folders"
But : "Hide protected system files and folders" was still checked
I unchecked it and there were the pagefile and hyberfile on root of C: drive.
#1 solved ==> operator error
What about #2?
Disabling—or manually restricting the maximum filesize limit of—the page file (also known as virtual memory in Windows) can lead to system instability and out-of-memory errors if your physical RAM is insufficient for running applications or handling background processes. While it might seem beneficial for freeing up disk space or potentially improving performance in specific scenarios, the risks generally outweigh the advantages for most users, especially those with limited RAM.

Here's a more detailed explanation of the risks:

Out-of-memory errors:
When applications need more memory than is physically available, Windows relies on the page file to store less frequently used data on the hard drive, effectively using it as an extension of RAM. If the page file is disabled or cannot be automatically increased to satisfy this need, applications will be unable to access this extra memory, leading to crashes or errors.

System instability:
Without the page file or without its ability to automatically be increased, the system might struggle to handle memory-intensive tasks, causing slowdowns, freezes, or even complete system crashes.

Performance impact:
While some users report faster performance by disabling the page file or by restricting its size, this is often due to having a very large amount of RAM (16GB or more) and not running memory-intensive applications. Another common reason why some users report improvements is the placebo effect and/or people like to be "in control" even if the factual reality is that it's usually just a gamble, and oftentimes not even a smart gamble by any stretch of the imagination. For most users, the page file is essential for smooth operation, especially when running multiple applications or dealing with large datasets.

Security risks:
The page file can contain sensitive information, but this is usually encrypted. For most users, the security risks associated with the page file are minimal and can be mitigated by using appropriate security measures. So, choosing to disable the pagefile does not help to improve security, as the system instability that may result from doing so may in fact have a negative impact on security. At least in part, Windows 11 hardware requirements are there to prevent system instability, also because system instability can be detrimental to security.

Development environment impact:
Some developers might disable the page file in specific testing environments, but this is not a general recommendation for all users.

In summary, choosing to NOT let Windows automatically manage the page file is generally not recommended unless you have a very specific reason and a large amount of RAM (16GB or more), and you understand the potential risks. (And before anyone should ask, no, just because you've always been lucky doesn't mean that the potential risks don't exist—that's nihilism. So, either you thoroughly undestand the risks or simply you don't, and, whether you like it or not, adding to the folklore now won't save your bacon later when things do go pear shaped.) It's often better to let Windows manage the page file automatically, as it's optimized to handle memory management efficiently.
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
    Antivirus
    What's an antivirus?
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
Thanks for the replies and education. As I said, I was not looking to make a change and will let W11 do its thing. There should be plenty of room on the new SSD.
-ceej
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
Quick modern method to completely disable Virtual Memory.
Reboot your system, pagefile.sys and swapfile.sys files will be gone.

Powershell:
# Page File Automatic Managed - Disable
$ComputerSystem = Get-CimInstance -ClassName Win32_ComputerSystem
Set-CimInstance -CimInstance $ComputerSystem -Property @{
    AutomaticManagedPagefile = $false
}

# Page File Settings - Cleanup
$PageFile = Get-CimInstance -ClassName Win32_PageFileSetting
Remove-CimInstance -CimInstance $PageFile -Confirm:$false
 

My Computer

System One

  • OS
    Windows 11 24H2 IoT Enterprise LTSC
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel i5-11400
    Motherboard
    Asus TUF GAMING B560M-PLUS WIFI
    Memory
    32 GB (2x16GB)
    Hard Drives
    Samsung 980 PRO M.2

Latest Support Threads

Back
Top Bottom