New-WebFtpSite

Create a new FTP 7 Site.

Syntax

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

Description

Creates a new FTP site. FTP 7 or later must be installed before this cmdlet will function successfully.

Examples

-------------- EXAMPLE 1: Creating a new FTP site binding --------------

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

Creates a new FTP site named "testFtpSite" (works with FTP7 only).

Required Parameters

-Name

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

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

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

The ID of the new FTP site.

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

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

The port number of the new FTP site.

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