How to change the port range in iis ftp pasv Mode

Source: Internet
Author: User

If this attribute is specified, FTP will validate the range from 5001 to 65535. To limit the range of this large port, you can use the IIS Management Utility Adsutil. vbs.
Cd c: \ Inetpub \ AdminScripts
Adsutil. vbs set/MSFTPSVC/PassivePortRange "8900-8909" (for example, open the specified 10 ports)
Restart the FTP service
Note: If the firewall is enabled, you must add the above ports.

Appendix: Common Adsutil. vbs syntax
Configure Directory Access Permissions
C: \ Inetpub \ Admins cripts> chaccess. vbs-a w3svc/1/ROOT-verbose
Usage: chaccess <-- ADSPath |-a ADSPATH> controls the configuration path.
[-- Computer |-c COMPUTER1 [, COMPUTER2. ..] specifies the machine name and IP address.
[+ Read |-read] read permission in the main directory
[+ Write |-write] write permission in the main directory
The execution permission in the [+ s privileges |-s privileges] main directory is script-only.
[+ *** Ute |-***** ute] The execution permission in the main directory is script and executable program.
[+ Browse |-browse] directory browsing permission in the main directory
[-- Verbose |-v] current version
[-- Help |-?]
Displays the attributes and status information of a specified path.
C: \ Inetpub \ Admins cripts> dispnode help
Usage: dispnode <-- ADSPath |-a ads path of node> [-- help |-h]
Ads path-The Path of the node to be displayed
Example 1: dispnode-a IIS: // LocalHost/w3svc displays the main attributes of the current IIS
Example 2: dispnode -- adspath IIS: // MachineName/w3svc/1 displays the status information of the current site
Search for the named Web and display the node number, description, host name, port, and IP address
C: \ Inetpub \ Admins cripts> findweb
Web Site Number = 1
Web Site Des cription = default Web Site
Hostname =
Port = 80
IP Address =
C: \ Inetpub \ Admins cripts> findweb m7.net
Web Site Number = 2
Web Site Des cription = m7.net
Hostname = www.m7.net
Port = 80
IP Address = www.m7.net
Displays the Path Management tree of a specified site.
C: \ Inetpub \ Admins cripts> disptree. vbs help
Usage: disptree [-- ADSPath |-a root node] specifies the path to display the management tree
[-- NoRecurse |-n]
[-- Help |-?]
Create a WEB virtual site
C: \ Inetpub \ Admins cripts> mkw3site help
Unknown argument help
Usage: mkw3site <-- RootDirectory |-r root directory> website path name
<-- Comment |-t server comment> WEB site ID
[-- Computer |-c COMPUTER1 [, COMPUTER2. ..]
[-- Port |-o port num] port
[-- IPAddress |-I IP ADDRESS] IP ADDRESS
[-- HostName |-h host name] HOST NAME
[-- SiteNumber |-n SITENUMBER]
[-- DontStart] does not start
[-- Verbose |-v]
[-- Help |-?]
Create a virtual directory for the specified site
C: \ Inetpub \ Admins cripts> mkwebdir. vbs help
Usage: mkwebdir [-- computer |-c COMPUTER1, COMPUTER2] specify the server name
<-- Website |-w WEBSITE1> specifies the virtual site name.
<-- Virtualdir |-v NAME1, PATH1, NAME2, PATH2,...> specify the virtual directory name and directory file address
[-- Help |-?]
Example: mkwebdir-c MyComputer-w "Default Web Site"
-V "dir1", "c: \ inetpub \ wwwroot \ dir1", "dir2", "c: \ inetpub \ wwwroot \ dir2"
Suspend the IIS service of the specified site
C: \ Inetpub \ Admins cripts> pausesrv help
Usage: pausesrv <-- ADSPath |-a server1 [, server2, server3. ..]>
[-- Computer |-c COMPUTER1 [, COMPUTER2. ..]
[-- Verbose |-v]
[-- Help |-?]
Example 1: pausesrv-a w3svc/1, msftpsvc/2
Example 2: pauseftp-c MACHINE1, MACHINE2, MACHINE3-a w3svc/1, msftpsvc/2
Resume the IIS service of the paused site
C: \ Inetpub \ Admins cripts> contsrv. vbs help
Usage: contsrv <-- ADSPath |-a server1 [, server2, server3. ..]>
[-- Computer |-c COMPUTER1 [, COMPUTER2. ..]
[-- Verbose |-v]
[-- Help |-?]
Example 1: contsrv-a w3svc/1, msftpsvc/2
Example 2: contsrv-c MACHINE1, MACHINE2, MACHINE3-a w3svc/1, msftpsvc/2
Same as above
Pauseftp. vbs pause the FTP Server Service
Contftp. vbs resume the suspended FTP service
Pauseweb. vbs pause the Web Server Service
Contweb. vbs resume the suspended WWW Service
Stop the IIS server service of the specified site
C: \ Inetpub \ Admins cripts> stopsrv. vbs-a w3svc/2
Start the IIS server service of the specified site
C: \ Inetpub \ Admins cripts> startsrv. vbs-a w3svc/2
Stop the WEB Server Service of the specified site
C: \ Inetpub \ Admins cripts> startweb. vbs-a w3svc/2
Start the Web Server Service of the specified site
C: \ Inetpub \ Admins cripts> stopweb. vbs-a 2
Same as above
Stopftp. vbs stop FTP Server Service
Startftp. vbs start the FTP Server Service
Tracking Script Execution
C: \ Inetpub \ Admins cripts> synciwam. vbs-h
Usage: cs cript synciwam. vbs [-v |-h]
-V verbose: trace *** ution of the s limit
-H help: print this message

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.