cmd命令行修改windows虚拟内存pagefile.sys

2019-04-26 15:36:58 weixin_34256074 阅读数 99

原文链接:https://blog.51cto.com/jameszhan/2385225

cmd命令行修改windows虚拟内存

#查看当前设置
wmic pagefile list /format:list

#取消自动管理分页文件大小
wmic computersystem where name=”%computername%” set AutomaticManagedPagefile=False

#修改页面文件大小 最小1024MB,最大4096MB
wmic pagefileset where name=”C:\pagefile.sys” set InitialSize=1024,MaximumSize=4096

#重启生效
shutdown -r -t 0

发表回复