Shrink Windows Pagefile.Sys Automatically

In this article, I will discuss the process of automatically shrinking the Windows pagefile.sys to optimize system performance and free up disk space.

Limit the size of the pagefile.sys to a specific range to prevent it from becoming too large.

Adjusting the Pagefile Size

To adjust the Pagefile size in Windows, follow these steps:

1. Right-click on “This PC” and select “Properties.”
2. Click on “Advanced system settings” in the left-hand menu.
3. Under the “Advanced” tab, click on “Settings” under the “Performance” section.
4. In the Performance Options window, go to the “Advanced” tab and click on “Change” under the “Virtual memory” section.
5. Uncheck “Automatically manage paging file size for all drives.”
6. Select the drive you want to adjust the Pagefile size for.
7. Choose “Custom size” and enter the initial and maximum size in megabytes.
8. Click “Set” and then “OK” to apply the changes.

Locating the Pagefile

To locate the Pagefile in Windows, you can access the System Properties window by right-clicking on “This PC” and selecting “Properties.” Then, click on “Advanced system settings” and go to the “Advanced” tab. Under the “Performance” section, click on “Settings” and navigate to the “Advanced” tab again. Here, you can find the Pagefile settings and make adjustments as needed.

Removing the Pagefile

To remove the Pagefile in Windows, you can use a simple script to automatically shrink the Pagefile. Sys file. First, open Notepad and enter the following command: powercfg -h off. Save the file with a .

bat extension, then right-click and select “Run as administrator” to execute the script. This will disable the hibernation file and shrink the Pagefile. Sys.

See also  Windows 10/11 Ghost Bubbles Touch Screen Fixes

Setting a Fixed Pagefile Size

  • Access the System Properties by right-clicking on “This PC” and selecting “Properties.”
  • Click on “Advanced system settings” in the left-hand menu.
  • Under the “Performance” section, click “Settings.”
  • Go to the “Advanced” tab and click “Change” under the “Virtual memory” section.
  • Uncheck “Automatically manage paging file size for all drives.”
  • Select the drive you want to set a fixed pagefile size for.
  • Choose “Custom size” and enter the initial and maximum size for the pagefile in megabytes.
  • Click “Set” and then “OK” to apply the changes.
Was this article helpful?
YesNo
Scroll to Top