Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Iisext.vbs to enable Web service extension files

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the knowledge of "how to use Iisext.vbs to enable Web service extension files". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Apply to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

You can use the command line script iisext.vbs (stored in systemroot\ system32) to enable a single file in the WebSvcExtRestrictionList Metabase Property property of the configuration database. This command can be executed on a local or remote computer running members of the Windows Server 2003 family with IIS 6.0. Web service extension files can be ISAPI extensions or CGI files.

Iisext.vbs performs the same actions that can be used with the IIS Manager. You can use any of the tools to manage IIS sites.

Important matters

Only members of the Administrators group on the local computer can run scripts and executables. As a security best practice, log on to the computer using an account that is not part of the Administrators group, and then use the runas command to run scripts and executables as an administrator. At the command prompt, type runas / profile / User:MyComputer\ Administrator cmd, open a command window with administrator privileges, and then type cscript.exeScriptName (including the full path to the script and any parameters).

This topic includes the following information:

Syntax: the order in which you must type a command and any parameters and options that follow it.

Parameter: the value assigned to the variable in the command.

Example: sample code and a description of the result.

Grammar

Iisext / EnFile Drive:\ Path\ FileName [/ s computer [/ u [domain\] user / p password]]

Parameters.

Drive:\ Path\ FileName

Necessary. Specify the file name and path of the Web service extension file that you intend to enable.

/ s Computer

Runs the script on the specified remote computer. Type the computer name or IP address without a backslash. By default, the script runs on the local computer.

/ u [Domain\] User

Runs the script with the privileges of the specified user account. The account must be a member of the Administrators group on the remote computer. By default, the script runs with the permissions of the current user on the local computer.

/ p Password

Specifies the password for the user account specified in the / u parameter. If you ignore this parameter, the script prompts you to enter a password and does not display the text you typed.

Example

Example 1:

The following command enables the "Timesheet.exe" file in WebSvcExtRestrictionList Metabase Property on the local computer:

The copy code is as follows:

Iisext / EnFile c:\ Source\ Timesheet.exe

In response, iisext displays the following:

Connecting to server... Done.

Enabling extension file complete.

Example 2:

The following command enables the "Taxes.dll" file in WebSvcExtRestrictionList Metabase Property on the remote computer:

The copy code is as follows:

Iisext / EnFile c:\ Source\ Taxes.dll / s RemoteComputer / u Manager / p Pa$$Werd

In response, iisext displays the following:

Connecting to server... Done.

Enabling extension file complete.

That's all for "how to use Iisext.vbs to enable Web service extension files". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report