How to set Windows Pagefile.sys with the command line

Source: Internet
Author: User

At the time of remote control, the command line is required to set Windows Pagefile.sys, and the command line is more needed when the core installation of Windows Server 2008 is installed. How do you want to operate it exactly?

The tool to be used to set up "Pagefile.sys" on the command line is "WMIC", which is brought in by Windows 2000 and later versions.

If you want to disable automatic paging files, you can enter:

WMIC ComputerSystem where name= "%computername%" set Automaticmanagedpagefile=false

You can then use the "pagefileset" command to set the paging file, such as creating a paging file to replace the "C:pagefile.sys", or delete the paging file and so on.

If you want to build a fixed size of 2048M pagefile, enter the following command:

WMIC Pagefileset where name= "C:pagefile.sys" set initialsize=2048,maximumsize=2048

You can also run the following command to view the settings for "pagefile":

WMIC Pagefileset

Or the following command is the same effect:

WMIC Pagefileset List/format:list

Remember to reset the system before it takes effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.