JSI Tip 7299. The Windows XP and Windows Server 2003 PagefileConfig utility.

Jerold Schulman

October 7, 2003

5 Min Read
ITPro Today logo in a gray background | ITPro Today

When you use the Windows XP CMD help., or Windows Server 2003 CMD help, and press Pagefileconfig on the New command-line tools page, you see:

Pagefileconfig.vbs

Enables an administrator to display and configure a system's paging file Virtual Memory settings.

pagefileconfig change

Changes a system's existing paging file Virtual Memory settings.

Syntax

<p>
  <nobr><b>pagefileconfig</b>[<b>.vbs</b>]</nobr>
  <nobr><b>/change</b></nobr>
  <nobr>[<b>/s</b> <em>Computer</em> [<b>/u</b> <em>Domain</em><em>User</em> [<b>/p</b> <em>Password</em>]]]</nobr>
  <nobr>{[<b>/i</b> <em>InitialPageFileSize</em>] | [<b>/m</b> <em>MaximumPageFileSize</em>]}</nobr>
  <nobr><b>/vo</b> {<em>VolumeLetter</em> | <b>*</b>}</nobr>
  <nobr>[<b>/vo</b> {<em>VolumeLetter2</em> | <b>*</b>} [...]]</nobr>
</p>

Parameters

/s Computer Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. /u DomainUser Runs the script with the account permissions of the user specified by User or DomainUser. The default is the permissions of the current logged on user on the computer issuing the command. /p Password Specifies the password of the user account that is specified in the /u parameter. /i InitialPageFileSize Specifies the new initial size (in MB) to use for the paging file specified. /m MaximumPageFileSize Specifies the new maximum size (in MB) to use for the paging file specified. /vo {VolumeLetter|*} Specifies the volume or volumes of the paging file settings to be changed. The volume is specified by a letter followed by a colon (for example, "C:"). /? Displays help at the command prompt.

Examples

The following examples show how you can use the

pagefileconfig /change

command:

<p><b>
    <nobr>pagefileconfig.vbs /change /m 400 /vo c:</nobr><br>
    <nobr>pagefileconfig.vbs /change /s srvmain /u maindomhiropln /m 400 /vo c:</nobr><br>
    <nobr>pagefileconfig.vbs /change /s srvmain /u maindomhiropln /i 20 /vo *</nobr><br>
    <nobr>pagefileconfig.vbs /change /s srvmain /u maindomhiropln /p p@ssW23 /i 200 /m 500 /vo c: /vo d:</nobr>
  </b></p>

pagefileconfig create

Creates or adds an additional paging file to a system.

Syntax

pagefileconfig.vbs

/create[/s Computer [/u DomainUser [/p Password]]]/i InitialPageFileSize/m MaximumPageFileSize/vo {VolumeLetter | *}[/vo {VolumeLetter2 | *} [...]]<p></p>

Parameters

/s Computer Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. /u DomainUser Runs the script with the account permissions of the user specified by User or DomainUser. The default is the permissions of the current logged on user on the computer issuing the command. /p Password Specifies the password of the user account that is specified in the /u parameter. /i InitialPageFileSize Specifies the new initial size (in MB) to use for the paging file specified. /m MaximumPageFileSize Specifies the new maximum size (in MB) to use for the paging file specified. /vo {VolumeLetter | *} Specifies the volume or volumes of the paging file settings to be created. The volume is specified by a letter followed by a colon (for example, "C:"). /? Displays help at the command prompt.

Examples

The following examples show how you can use the

pagefileconfig /create

command:

<p><b>
    <nobr>pagefileconfig.vbs /create /i 140 /m 300 /vo d:</nobr><br>
    <nobr>pagefileconfig.vbs /create /s srvmain /u maindomhiropln /i 150 /m 300 /vo d:</nobr><br>
    <nobr>pagefileconfig.vbs /create /s srvmain /u maindomhiropln /i 50 /m 200 /vo *</nobr><br>
    <nobr>pagefileconfig.vbs /create /s srvmain /u maindomhiropln /p p@ssW23 /i 100 /m 600 /vo d: /vo e: /vo f:</nobr>
  </b></p>

pagefileconfig delete

Deletes a paging file from a system.

Syntax

<p>
  <nobr><b>pagefileconfig.vbs</b></nobr>
  <nobr><b>/delete</b></nobr>
  <nobr>[<b>/s</b> <em>Computer</em> [<b>/u</b> <em>Domain</em><em>User</em> [<b>/p</b> <em>Password</em>]]]</nobr>
  <nobr><b>/vo</b> {<em>VolumeLetter</em> | <b>*</b>}</nobr>
  <nobr>[<b>/vo</b> {<em>VolumeLetter2</em> | <b>*</b>} [...]]</nobr>
</p>

Parameters

/s Computer Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. /u DomainUser Runs the script with the account permissions of the user specified by User or DomainUser. The default is the permissions of the current logged on user on the computer issuing the command. /p Password Specifies the password of the user account that is specified in the /u parameter. /vo {VolumeLetter | *} Specifies the volume or volumes of the paging file settings to be deleted. The volume is specified by a letter followed by a colon (for example, "C:"). /? Displays help at the command prompt.

Examples

The following examples show how you can use the

pagefileconfig /delete

command:

<p><b>
    <nobr>pagefileconfig.vbs /delete /vo d:</nobr><br>
    <nobr>pagefileconfig.vbs /delete /s srvmain /u maindomhiropln /vo d:</nobr><br>
    <nobr>pagefileconfig.vbs /delete /s srvmain /u maindomhiropln /p p@ssW23 /vo d: /vo e: /vo f:</nobr>
  </b></p>

pagefileconfig query

Queries and displays a system's paging file Virtual Memory settings.

<p>
  <nobr><b>pagefileconfig.vbs</b></nobr>
  <nobr><b>/query</b></nobr>
  <nobr>[<b>/s</b> <em>Computer</em> [<b>/u</b> <em>Domain</em><em>User</em> [<b>/p</b> <em>Password</em>]]]</nobr>
  <nobr>[<b>/fo</b> {<b>TABLE</b> | <b>LIST</b> | <b>CSV</b>}]</nobr>
</p>

Parameters

/s Computer Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. /u DomainUser Runs the script with the account permissions of the user specified by User or DomainUser. The default is the permissions of the current logged on user on the computer issuing the command. /p Password Specifies the password of the user account that is specified in the /u parameter. /fo {TABLE | LIST | CSV} Specifies the format to use for the query output. Valid values are TABLE, LIST, and CSV. The default value is LIST. /? Displays help at the command prompt.

Examples

The following examples show how you can use the pagefileconfig /query command:

<p><b>pagefileconfig.vbs /query<br>
    <nobr>pagefileconfig.vbs /query /fo table</nobr><br>
    <nobr>pagefileconfig.vbs /query /s srvmain /u maindomhiropln</nobr><br>
    <nobr>pagefileconfig.vbs /query /s srvmain /u maindomhiropln /p p@ssW23 /fo list</nobr>
  </b></p>

Remarks

  • Maximum paging file size is limited to available free disk space less the crashdump recovery settings for the boot drive.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like