2011-03-30 65 views

回答

1

我的建議是扔掉那個舊腳本。如果你使用IIS7.5那麼你就必須提供的WebAdministration PowerShell的模塊,您:

http://technet.microsoft.com/en-us/library/ee909471(WS.10).aspx

要裝入此待辦事​​項:

Import-Module WebAdministration

看一看New-WebBinding指令:

New-WebBinding (Web Server (IIS) Administration Cmdlets in Windows PowerShell)

你可以找到更多有關這些cmdlet的是在這裏:

Web Server (IIS) Administration Cmdlets in Windows PowerShell

關於IPv6地址,你不能只是神奇地讓一個。您將從池中分配一個公共IP地址,或者您需要使用Unique Local IPv6 Unicast Address(與RFC1918私有IPv4地址同義)。