Поделиться через


Pagefileconfig.vbs

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

For the command syntax, click a command:

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 p@ssW23 /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 p@ssW23 /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 p@ssW23 /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 p@ssW23 /fo list

Remarks

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

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Command-line reference A-Z