New-WebFtpSite

Creates an FTP 7 Site.

Syntax

New-WebFtpSite
   [-Name] <String>
   [-Force]
   [-HostHeader <String>]
   [-IPAddress <String>]
   [-Id <UInt32>]
   [-PhysicalPath <String>]
   [-Port <UInt32>]
   [<CommonParameters>]

Description

The New-WebFtpSite cmdlet creates an FTP site. This cmdlet requires FTP 7 or later.

Examples

Example 1: Create an FTP site binding

IIS:\> New-WebFtpSite -Name "testFtpSite" -Port 21 -PhysicalPath "c:\test" -HostHeader "mySite" -IPAddress "127.0.0.1"

This command creates an FTP site named testFtpSite. This command works with FTP7 only.

Required Parameters

-Name

Specifies the name of the new FTP site.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Force

Forces the new FTP site to be created.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HostHeader

Specifies the host header of the new FTP site.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-IPAddress

Specifies the IP Address of the new FTP site.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Id

Specifies the ID of the new FTP site.

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PhysicalPath

Specifies the physical path to the new FTP site. The specified folder must already exist.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Port

Specifies the port number of the new FTP site.

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False