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

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

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

Parameters

/s Computer
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u Domain\User
Runs the script with the account permissions of the user specified by User or Domain\User. 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:

pagefileconfig.vbs /change /m 400 /vo c:
pagefileconfig.vbs /change /s srvmain /u maindom\hiropln /m 400 /vo c:
pagefileconfig.vbs /change /s srvmain /u maindom\hiropln /i 20 /vo *
pagefileconfig.vbs /change /s srvmain /u maindom\hiropln /p [email protected] /i 200 /m 500 /vo c: /vo d:

pagefileconfig create

Creates or adds an additional paging file to a system.

Syntax

pagefileconfig.vbs/create\[/s Computer \[/u Domain\User \[/p Password\]\]\]/i InitialPageFileSize/m MaximumPageFileSize/vo \{VolumeLetter | *\}\[/vo \{VolumeLetter2 | *\} \[...\]\]

Parameters

/s Computer
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u Domain\User
Runs the script with the account permissions of the user specified by User or Domain\User. 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:

pagefileconfig.vbs /create /i 140 /m 300 /vo d:
pagefileconfig.vbs /create /s srvmain /u maindom\hiropln /i 150 /m 300 /vo d:
pagefileconfig.vbs /create /s srvmain /u maindom\hiropln /i 50 /m 200 /vo *
pagefileconfig.vbs /create /s srvmain /u maindom\hiropln /p [email protected] /i 100 /m 600 /vo d: /vo e: /vo f:

pagefileconfig delete

Deletes a paging file from a system.

Syntax

pagefileconfig.vbs/delete\[/s Computer \[/u Domain\User \[/p Password\]\]\]/vo \{VolumeLetter | *\}\[/vo \{VolumeLetter2 | *\} \[...\]\]

Parameters

/s Computer
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u Domain\User
Runs the script with the account permissions of the user specified by User or Domain\User. 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:

pagefileconfig.vbs /delete /vo d:
pagefileconfig.vbs /delete /s srvmain /u maindom\hiropln /vo d:
pagefileconfig.vbs /delete /s srvmain /u maindom\hiropln /p [email protected] /vo d: /vo e: /vo f:

pagefileconfig query

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

pagefileconfig.vbs/query\[/s Computer \[/u Domain\User \[/p Password\]\]\]\[/fo \{TABLE | LIST | CSV\}\]

Parameters

/s Computer
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u Domain\User
Runs the script with the account permissions of the user specified by User or Domain\User. 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:

pagefileconfig.vbs /query
pagefileconfig.vbs /query /fo table
pagefileconfig.vbs /query /s srvmain /u maindom\hiropln
pagefileconfig.vbs /query /s srvmain /u maindom\hiropln /p [email protected] /fo list

Remarks

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



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish