To manually configure the pagefile settings, first turn off automatic management of the pagefile using the following command:
| wmic computersystem where name= "%computername%" set AutomaticManagedPagefile=False |
Then set the pagefile location and size using the following command. In the example below, a 10GB pagefile is created and placed in the root of the “C” drive.
| wmic pagefileset where name= "C:\\pagefile.sys" set InitialSize= 10240 ,MaximumSize= 10240 |
There are plenty of best practice documents on paging file size and location available on the Internet so I won’t cover those topics
Aucun commentaire:
Enregistrer un commentaire