In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 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 add 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 add a single file to WebSvcExtRestrictionList Metabase Property. 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 / AddFile Drive:\ Path\ FileName Access {0 | 1} ID Deletable {0 | 1} ShortDesc [/ s computer [/ u [domain\] user/p password]]
Parameters.
Drive:\ Path\ FileName
Necessary. Specify the file name and path of the Web service extension file to add.
Access
Necessary. Use a number to indicate whether the file is disabled (set to 0) or enabled (set to 1) after the file is added.
ID
Necessary. Specifies the ID of the Web service extension associated with the file.
Deletable
Necessary. Use a number to indicate whether files can be removed from the list of Web service extension restrictions by using iisext or IIS Manager. If set to 0, deletion of the file is prohibited; if set to 1, deletion of the file is allowed.
ShortDesc
Necessary. A short description of the Web service extension associated with the file. This text can be localized, and it should be the same as all files associated with the same Web service extension.
/ 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.
/?
Displays help at the command prompt.
Example
Example 1:
The following command adds the file "Timesheet.exe" to the WebSvcExtRestrictionList property of the configuration database on the local computer. Set the Access flag to "0" to disable the file at startup, the ID flag identifies the associated Web service extension as "Payroll", and the Deletable flag to "1" to allow the file to be removed from the list of Web service extensions.
The copy code is as follows:
Iisext / AddFile c:\ Source\ Timesheet.exe 0 Payroll 1 Payroll
In response, iisext displays the following:
Connecting to server... Done.
Adding extension file complete.
Example 2:
The following command adds the file "Payscale.dll" to the WebSvcExtRestrictionList property of the configuration database on the remote computer. Set the Access flag to "1" to enable the file at startup, the ID flag identifies the associated Web service extension as "Payroll", and the Deletable flag to "0" to prevent the file from being deleted from the list of Web service extensions.
The copy code is as follows:
Iisext / AddFile c:\ Source\ Payscale.dll 1 Payroll 0 Payroll / s RemoteComputer / u Manager / p Pa$$Werd
In response, iisext displays the following:
Connecting to server... Done.
Adding extension file complete.
That's all for "how to use Iisext.vbs to add 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.