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 Iisftp.vbs to list FTP sites

2025-03-29 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 Iisftp.vbs to list FTP sites". 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

Administrators often need to check the status and / or properties of their File transfer Protocol (FTP) sites. To check the status of the site, use the command line script iisftp.vbs (stored in systemroot\ System32) to query or list FTP sites on the remote or local computer.

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

Iisftp/query [FTPSite [FTPSite...]]

[/ s Computer [/ u [Domain\] User / p password]]

Parameters.

FTPSite

Necessary. Specify the site name or configuration database path for the FTP site. The FTP site must be uniquely identified. If there are multiple FTP sites with the same descriptive name, you must use the configuration database path to identify the FTP 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, port, status, and IP address, or use All to represent all unassigned addresses.

Example

Example 1:

The following example shows the FTP site on the local computer. If you omit the FTPSite parameter, the search for the local computer is restricted and the / s parameter is no longer required. 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:

Iisftp / query

In response, iisftp displays all IIS FTP sites on the local computer, including site name, configuration database path, status, IP address, and port.

Connecting to server... Done.

Site Name (Metabase Path) Status IP Port

Default FTP Site (MSFTPSVC/1) STARTED ALL 21

My Site (MSFTPSVC/858812021) STOPPED ALL 21

Drivers (MSFTPSVC/1932955329) STARTED 172.30.163.249 21

Downloads (MSFTPSVC/1879143292) STARTED ALL 25

Library (MSFTPSVC/2109607139) STARTED 172.30.163.126 21

Example 2:

The following example searches for the FTP site "Download" 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:

Iisftp / query Download / s SVR01 / u Admin6 / p A76QVJ32#

In response, iisftp displays the FTP site "Downloads" on SVR01.

Site Name (Metabase Path) Status IP Port

Downloads (MSFTPSVC/1879143292) STARTED ALL 25

Example 3:

The following example shows the status of the FTP sites "Downloads" and "Drivers" on the local computer. Although the configuration database path is also valid, it uses the site name to identify the FTP site.

The copy code is as follows:

Iisftp / query Downloads Drivers

In response, iisftp displays the FTP sites "Downloads" and "Drivers".

Site Name (Metabase Path) Status IP Port

Downloads (MSFTPSVC/1879143292) STARTED ALL 25

Drivers (MSFTPSVC/1932955329) STARTED 172.30.163.249 21

This is the end of "how to use Iisftp.vbs to list FTP sites". 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