大网数据广告活动
性能与资源

You cannot set page files on a partition that is larger than 2 terabytes

· 52CE 我爱测

Describes a problem that occurs when you try to set page files on a partition that is larger than 2 terabytes

This article provides a workaround for an issue that occurs when you try to set page files on a partition that is larger than 2 terabytes.

Original KB number:   973423

Symptoms

On a Windows-based computer, when you try to set a page file on a partition that is larger than 2 terabytes (TB), you receive the following error message:

Drive X: is too small for the maximum paging file size specified. Please enter a smaller number.

This problem occurs when you try to set page files in the Virtual Memory user interface in the Advanced System Settings. This is true regardless of whether the page file is a customized page file or a system-managed page file.

Cause

This problem occurs because the Virtual Memory user interface calculates incorrectly the maximum space that is required to create the page file.

Workaround

To work around this problem, use Windows Management Instrumentation (WMI) instead of the Virtual Memory user interface to set page files.

To create a page file, run the following command:

wmic.exe pagefileset creates name="<X>:\\pagefile.sys"

Note: In this command, <X> is the letter of the drive on which you want to create the page file.

To set the size of the page file, run the following command:

wmic.exe pagefileset where name="<X>:\\pagefile.sys" set InitialSize=300000,MaximumSize=3000000

Note: In this command, the page file size is set to 300,000 megabytes.

If you do not have to have the page file on drive C, run the following command to delete it:

wmic.exe pagefileset where name="C:\\pagefile.sys" delete

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。