1. Immediately reduce it (reboot method)

Do this as local admin (e.g., on a Windows Server or desktop):

  1. Open System Properties
    • Press Win + R, type:
      SystemPropertiesAdvanced.exe
      and hit Enter.
    • Go to Advanced tab → Performance → Settings…
    • On the Advanced tab, click Change… under Virtual Memory.
  2. Uncheck auto‑manage
    • Uncheck “Automatically manage paging file size for all drives”.
    • Select your C: drive, then choose Custom size.
  3. Set much smaller values
    For a 128 GB‑RAM system, a reasonable fixed pagefile is about 16–32 GB total.
    Example:
    • Initial size: 16384
    • Maximum size: 32768
      (i.e., 16 GB min, 32 GB max)
    • Click Set, then OK on all dialogs.
  4. Force the shrink via reboot
    • Either:
      • Shut down the machine completely, power it back on, or
      • Reboot once.
    • After boot, Windows will recreate pagefile.sys closer to your new settings.

This should reclaim tens of gigabytes on C:.


2. Limit the size long‑term

  • Keep it on C: but locked to a fixed range.
    • Do not switch back to “System managed” if you want control; that’s why it grew to 50 GB.
    • Keep “Automatically manage paging file size for all drives” unchecked.
    • Set both Initial and Maximum to the same value (e.g., 16384 MB = 16 GB) if you want it truly fixed.
  • Typical sane ranges for 128 GB RAM:
    • Minimum: 8–16 GB
    • Maximum: 16–32 GB
      This is enough for crash dumps and normal memory over‑commit without eating all your drive.
  • If you really must reclaim max space:
    • You can drop it as low as 2–4 GB on a 128 GB RAM machine, but that starts to risk issues if a misbehaving app or driver tries to allocate huge virtual memory.

3. Optional safety tweaks

  • Ensure “Clear paging file at shutdown” is off unless you explicitly need it (it makes shutdown longer).
  • Consider if C: is an SSD; on modern SSDs with 128 GB RAM, a 16–32 GB pagefile is fine and protects against crashes without much performance hit.