Set Windows pagefile size in answer file

pagefilessd

Is it possible to set the Windows pagefile size in an answer file? The Windows Automated Installation Kit (WAIK) Unattended Windows Setup Reference shows that the pagefile for the windowsPE pass of setup can be set, but that this setting does not affect the pagefile of the Windows operating system.

I'm asking because I have a 16 GB RAM server with a 64GB system drive consisting of 2×64 GB SSDs in a RAID 1 array. The default pagefile that Windows creates for this kind of system is 16GB, so it takes up a lot of the system drive capacity. I think an 4 GB pagefile is sufficient for a kernel memory dump, so I would like to set that for the pagefile size. I know I can do this after Windows setup completes, but if it can be done at 4 GB from the beginning it might result in less fragmentation that if it is resized.

Best Answer

Probably not the answer you're looking for, but regarding modifying anything to do with a page file, have a look at the accepted answer to this question.