Aspnet_regiis command format description

Source: Internet
Author: User
Option Description

-C

Install ASP. NET client scripts (such as client verification scripts) in the aspnet_client subdirectory of each Internet Information Service (IIS) site directory.

Only the ASP. NET client scripts associated with Aspnet_regiis.exe are installed.

-Disable

Disable ASP. NET in the IIS security console.

This option can only be used-I,-IrOr-ROption. This option cannot be used in IIS versions earlier than IIS 6.0.

-E

Remove ASP. NET client scripts from the aspnet_client subdirectory of each IIS Site Directory.

Only remove ASP. NET client scripts associated with Aspnet_regiis.exe.

-Ea

Remove all ASP. NET client scripts from the aspnet_client subdirectory of each IIS Site Directory.

-Enable

Enable ASP. NET in the IIS security console.

This option can only be used-I,-IrOr-ROption. This option cannot be used before IIS 6.0 or before ASP. NET 2.0.

-GaUser

Grant the specified user access permissions to the IIS metadatabase used by ASP. NET and other directories.

This option cannot be used in versions earlier than ASP. NET 2.0.

-I

Install the ASP. NET version associated with Aspnet_regiis.exe, and update the script ing between the IIS metadata library root directory and the root directory.

Update only the script ing of applications that use the early ASP. NET version. New applications are not affected.

-Ir

Install the ASP. NET version associated with Aspnet_regiis.exe and register ASP. NET only in IIS.

This option does not update the script ing. To install ASP. NET and update script ing, use-I.

-KPath

Remove all ASP. NET version script mappings from all ASP. NET applications in the specified application root path and Its subdirectories.

-KnPath

Only remove all ASP. NET version script mappings from ASP. NET applications in the specified application root path.

This option does not affect applications in subdirectories of the specified path.

-Lk

Lists the paths and versions of all IIS metadatabase items that contain ASP. NET script ing.

The ing of ASP. NET scripts inherited from the parent item is not displayed.

-Lv

Lists the status and installation path of all ASP. NET versions installed on your computer.

-Norestart

Do not restart the IIS auxiliary process after installing or updating ASP. NET script ing.

If you will manually restart the IIS auxiliary process-IOr-ROption.

-R

Update the ing of all scripts in and below the IIS metadatabase to point to the ASP. net isapi version associated with Aspnet_regiis.exe.

Regardless of the current version, all existing script mappings are updated to point to the ASP. net isapi version associated with the ASP. net iis registration tool.

-SPath

Install the script ing (which points to the ASP. net isapi version associated with Aspnet_regiis.exe) to all ASP. NET applications under the specified application root path and Its subdirectories. Update all existing script ing using the earlier ASP. net isapi version in the specified path and below.

-SnPath

Install script ing (the script ing points to the ASP. net isapi version associated with the tool) in the ASP. NET application under the specified application root path. Update all existing script mappings using earlier ASP. net isapi versions in the specified path.

This option does not affect applications in the path subdirectory.

-U

Uninstall the ASP. NET version associated with the ASP. net iis registration tool from your computer. The existing script ing of this ASP. net isapi version is automatically remapped to the latest version of other installed ASP. NET isapis.

-Ua

Uninstall all ASP. NET versions from your computer.

-?

Displays the command syntax and options of the ASP. net iis registration tool.

Option Description

-Config +

Allow Remote Access to ASP. NET configurations on the computer.

-Config-

Remote Access to ASP. NET configurations on the computer is prohibited.

-PaContainer account

Grant the permission to access the specified container for the specified user or group account. This parameter uses the following optional modifier:

  • -PkuReplace the default computer container with the container specified by the user.

  • -CspProvider specifies the container provider to use.

  • -FullSpecify that you should add full access permissions instead of default read-only access permissions.

-PcContainer

Create an RSA public/private key pair in the specified container. This parameter uses the following optional modifier:

  • -SizeKeySize specifies the key size. The default value is 1024 bytes.

  • -PkuReplace the default key container on the computer with the container specified by the user.

  • -ExpSpecifies the private key that must be exported.

  • -CspProvider specifies the container provider to use.

-PdSection

Decrypts the configuration section. This parameter uses the following optional parameters:

  • -AppVirtualPath specifies that decryption should be performed at the level of the included path.

  • -LocationSubPath specifies the subdirectory to decrypt.

  • -PkmSpecify that the Machine. config file instead of the Web. config file should be decrypted.

-PdfSection webApplicationDirectory

Decrypts the specified configuration section of the Web. config file in the specified physical (non-virtual) directory.

-PeSection

Encrypts the specified configuration section. This parameter uses the following optional modifier:

  • -ProvProvider specifies the encryption provider to use.

  • -AppVirtualPath indicates that encryption should be performed at the included path level.

  • -LocationSubPath specifies the subdirectory to be encrypted.

  • -PkmSpecify that the Machine. config file should be encrypted instead of the Web. config file.

-WordpressSection webApplicationDirectory

Encrypts the specified configuration section of the Web. config file in the specified physical (non-virtual) directory.

-PiContainer file

Import the RSA public/private key pair from the specified XML file to the specified iner. This parameter uses the following optional modifier:

  • -PkuReplace the default computer container with the container specified by the user.

  • -ExpSpecifies that the private key can be exported.

  • -CspProvider specifies the container provider to use.

-PrContainer account

Removes the access permission of the specified user or group account on the specified container. This parameter uses the following optional modifier:

  • -PkuReplace the default computer container with the container specified by the user.

  • -CspProvider specifies the container provider to use.

-PxContainer file

Import the RSA public/private key pair from the specified container to the specified XML file. This parameter uses the following optional modifier:

  • -PkuReplace the default computer container with the container specified by the user.

  • -CspProvider specifies the container provider to use.

-PzContainer

Deletes the specified key container. This parameter uses the following optional modifier:

  • -PkuReplace the default computer container with the container specified by the user.

Example:
Aspnet_regiis-pe "connectionStrings"-app "/AjaxDemo"-prov "RSAProtectedconfigurationProvider"
-Note the size of the region to be encrypted in the pe section.
-Appvirtualpath: Specifies the destination region of the deployment in IIS.
-Prov

Aspnet_regiis-pd "connectionStrings"-app "/AjaxDemo"
-The region to be decrypted in the pd section. Pay attention to the region size.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.