In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to use iisweb.vbs to list websites". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use iisweb.vbs to list websites.
Apply to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
Administrators often need to check the status and / or properties of their websites. To check the status of a Web site, you can use the command line script iisweb.vbs (stored in systemroot\ System32) to query or list Web sites on remote or local computers.
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
Iisweb/query [WebSite [WebSite...]]
[/ s Computer [/ u [Domain\] User / p Password]]
Parameters.
WebSite
Restricts the query to the specified Web site. Type the name of the Web site or the configuration database path. All Web sites on the IIS server are displayed by default. The website must be uniquely identified. If multiple sites have the same descriptive name, you must use the configuration database path to identify the site.
/ 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.
Remarks
The query output includes the site name, configuration database path, and IP address or all to represent all unassigned addresses.
Example
Example 1:
The following example shows a Web site on the local computer. If you omit the WebSite parameter, the search for the local computer will be restricted and the / s parameter will no longer be needed. Because the user running the command prompt must log in as an administrator on the local computer, the / u and / p parameters can be ignored.
The copy code is as follows:
Iisweb / query
In response, iisweb displays all IIS sites on the local computer, including their site names, configuration database paths, status, IP addresses, ports, and hostnames.
Site Name (Metabase Path) Status IP Port Host
Default Web Site (W3SVC/1) STARTED ALL 90 NAMA
Products (W3SVC/1948497947) STARTED 172.30.163.244 80 N Unia
Finance (W3SVC/1211348328) STARTED 172.30.152.249 80 N Unia
Marketing (W3SVC/1907510956) STARTED ALL 95 www.contoso.com
Example 2:
The following example searches for the Web site "Marketing" on the remote computer SVR01. It uses the / s parameter to specify the remote computer and the / u and / p parameters to run the script with the user's administrator account privileges.
The copy code is as follows:
Iisweb / query Marketing / s SVR01 / u Admin6 / p A76QVJ32#
In response, iisweb displays the website "Marketing" on SVR01.
Site Name (Metabase Path) Status IP Port Host
Marketing (W3SVC/1907510956) STOPPED ALL 80 www.contoso.com
Example 3:
The following example shows the status of Web sites "Marketing" and "Finance" on the local computer. Although the configuration database path is also valid, it uses the site name to identify the site.
The copy code is as follows:
Iisweb / query Marketing Finance
In response, iisweb displays the status of the sites "Marketing" and "Finance".
Site Name (Metabase Path) Status IP Port Host
Marketing (W3SVC/1907510956) STARTED ALL 80 www.contoso.com
Finance (W3SVC/1509060625) STARTED 192.168.125.225 80 www.contosofinance.com
At this point, I believe you have a deeper understanding of "how to use iisweb.vbs to list websites". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.