New-WebFtpSite
Published: February 29, 2012
Updated: August 15, 2012
Applies To: Windows Server 2012
New-WebFtpSite
Syntax
Parameter Set: Default New-WebFtpSite [-Name] <String> [-Force] [-HostHeader <String> ] [-Id <UInt32> ] [-IPAddress <String> ] [-PhysicalPath <String> ] [-Port <UInt32> ] [ <CommonParameters>]
Detailed Description
Creates a new FTP site. FTP 7 or later must be installed before this cmdlet will function successfully.
Parameters
-Force
Forces the new FTP site to be created.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-HostHeader<String>
The host header of the new FTP site.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByPropertyName) |
|
Accept Wildcard Characters? |
false |
-IPAddress<String>
The IP Address of the new FTP site.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByPropertyName) |
|
Accept Wildcard Characters? |
false |
-Id<UInt32>
The ID of the new FTP site.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByPropertyName) |
|
Accept Wildcard Characters? |
false |
-Name<String>
The name of the new FTP site.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByPropertyName) |
|
Accept Wildcard Characters? |
false |
-PhysicalPath<String>
The physical path to the new FTP site. The specified folder must already exist.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByPropertyName) |
|
Accept Wildcard Characters? |
false |
-Port<UInt32>
The port number of the new FTP site.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByPropertyName) |
|
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Examples
-------------- EXAMPLE 1: Creating a new FTP site binding --------------
Creates a new FTP site named "testFtpSite" (works with FTP7 only).
IIS:\>New-WebFtpSite -Name testFtpSite -Port 21 -PhysicalPath c:\test -HostHeader mySite -IPAddress 127.0.0.1
