The aspnet_regiis.execommand uses the authorization, aspnet_regiis.exe

Source: Internet
Author: User

The aspnet_regiis.execommand uses the authorization, aspnet_regiis.exe

C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_regiis.exe

Aspnet_regiis.exe [-I [r] [-enable] |-u [a] |-r |-s [n] <path> |-k [n] <path> |- lv |-lk |-c |-e [a] |-?]

-I-install this version of ASP. NET, and update the script ing at the root of the IIS metadatabase and all script ing below the root. Upgrade existing versions of script ing to this version.

Note: The “aspnet_regiis.exe-I command can be used to reinstall ASP. NET. If ASP. NET has any problems, this command can be used to solve them.

-Ir-install this version of ASP. NET and register it only. Script ing in IIS is not updated.

-When enable-with-I or-ir specifies-enable, ASP. NET is also enabled in the IIS security console (IIS 6.0 or later.

-S <path>-install the script ing of this version recursively in the specified path. Upgrade existing versions of script ing to this version.

For example, aspnet_regiis.exe-s W3SVC/1/ROOT/SampleApp1

-Sn <path>-install the script ing of this version in a non-recursive manner in the specified path. Upgrade existing versions of script ing to this version.

-R-this version is the root location of the IIS metadata library and all script mappings below the root. Regardless of the current version, all existing script mappings are changed to this version.

-U-Uninstall this version of ASP. NET. Existing script ing to this version is remapped to the other top ASP. NET versions installed on this computer.

-Ua-Uninstall all ASP. NET versions on the computer.

-K <path>-recursively removes all script mappings to any ASP. NET version from the specified path.

For example, aspnet_regiis.exe-k W3SVC/1/ROOT/SampleApp1

-Kn <path>-removes all script mappings to any ASP. NET version in non-recursive mode from the specified path.

-Lv-list all ASP. NET versions installed on the computer (including the status and installation path ).
Status: Valid [(Root)] | Invalid

-Lk-list all paths (along with versions) of all IIS metadatabase items mapped by ASP. NET scripts ). The ing of ASP. NET scripts inherited from the parent item is not displayed.

-C-install the client script version in the aspnet_client subdirectory of each IIS Site Directory.

Note: If you are prompted to missing the JS script file, use the “aspnet_regiis.exe-c command.

-E-Remove this version of the client script from the aspnet_client subdirectory of each IIS Site Directory.

-Ea-Remove all versions of client scripts from the aspnet_client subdirectory of each IIS Site Directory.

-? -Print the help text.

To sum up, although these methods are not commonly used, the small Editor of the customer's house still finds it worthwhile to add them to the Favorites list. It may be necessary to use them at any time, hoping to help you.

Related Article

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.