wdsutil 设置-transportserverwdsutil set-transportserver

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

设置传输服务器的配置设置。Sets configuration settings for a Transport Server.

语法Syntax

wdsutil [Options] /Set-TransportServer [/Server:<Server name>]
     [/ObtainIpv4From:{Dhcp | Range}]
        [/start:<starting IP address>]
        [/End:<Ending IP address>]
     [/ObtainIpv6From:Range]\n\
        [/start:<start IP address>]\n\
        [/End:<End IP address>]
     [/startPort:<starting port>
        [/EndPort:<starting port>
     [/Profile:{10Mbps | 100Mbps | 1Gbps | Custom}]
     [/MulticastSessionPolicy]
             [/Policy:{None | AutoDisconnect | Multistream}]
                 [/Threshold:<Speed in KBps>]
                 [/StreamCount:{2 | 3}]
                 [/Fallback:{Yes | No}]

参数Parameters

参数Parameter 说明Description
[/Server: ][/Server:] 指定传输服务器的名称。Specifies the name of the Transport Server. 此名称可以是 NetBIOS 名称或完全限定的域名 (FQDN) 。This can be the NetBIOS name or the fully qualified domain name (FQDN). 如果未指定传输服务器名称,则使用本地服务器。If no Transport Server name is specified, the local server is used.
[/ObtainIpv4From: {Dhcp | 范围}][/ObtainIpv4From:{Dhcp | Range}] 设置 IPv4 地址的源,如下所示:Sets the source of the IPv4 addresses as follows:

-[/start: ] 设置 IP 地址范围的起始地址。- [/start: ] Sets the start of the IP address range. 这是必需的,仅当此选项设置为 " 范围" 时才有效。This is required and valid only if this option is set to Range.
-[/End: ] 设置 IP 地址范围的结尾。- [/End: ] Sets the end of the IP address range. 这是必需的,仅当此选项设置为 " 范围" 时才有效。This is required and valid only if this option is set to Range.
-[/startPort: ] 设置端口范围的开头。- [/startPort: ] Sets the start of the port range.
-[/EndPort: ] 设置端口范围的结尾。- [/EndPort: ] Sets the end of the port range.

[/ObtainIpv6From: Range][/ObtainIpv6From:Range] 指定 IPv6 地址的源。Specifies the source of IPv6 addresses. 此选项仅适用于 Windows Server 2008 R2,唯一受支持的值为 范围This option only applies to Windows Server 2008 R2 and the only supported value is Range.

-[/start: ] 设置 IP 地址范围的起始地址。- [/start: ] Sets the start of the IP address range. 这是必需的,仅当此选项设置为 " 范围" 时才有效。This is required and valid only if this option is set to Range.
-[/End: ] 设置 IP 地址范围的结尾。- [/End: ] Sets the end of the IP address range. 这是必需的,仅当此选项设置为 " 范围" 时才有效。This is required and valid only if this option is set to Range.
-[/startPort: ] 设置端口范围的开头。- [/startPort: ] Sets the start of the port range.
-[/EndPort: ] 设置端口范围的结尾。- [/EndPort: ] Sets the end of the port range.

[/Profile: {10Mbps | 100Mbps | 1Gbps | 自定义}][/Profile: {10Mbps | 100Mbps | 1Gbps | Custom}] 指定要使用的网络配置文件。Specifies the network profile to be used. 此选项仅适用于运行 Windows Server 2008 或 Windows Server 2003 的服务器。This option is only available for servers running Windows Server 2008 or Windows Server 2003.
[/MulticastSessionPolicy][/MulticastSessionPolicy] 配置多播传输的传输设置。Configures the transfer settings for multicast transmissions. 此命令仅适用于 Windows Server 2008 R2。This command is only available for Windows Server 2008 R2.

-[/Policy: {None | AutoDisconnect | Multistream}] 确定如何处理速度缓慢的客户端。- [/Policy:{None | AutoDisconnect | Multistream}] Determines how to handle slow clients. "" 表示将所有客户端保持在一个会话中的速度相同。None means to keep all clients in one session at the same speed. AutoDisconnect 表示断开连接到指定 /Threshold 以下的任何客户端。AutoDisconnect means that any clients that drop below the specified /Threshold are disconnected. Multistream 表示客户端将被划分为 /StreamCount指定的多个会话。Multistream means clients will be separated into multiple sessions as specified by /StreamCount.
-[/Threshold: ] 设置/policy 的最小传输速率(KBps) : AutoDisconnect- [/Threshold:] Sets the minimum transfer rate in KBps for /Policy:AutoDisconnect. 低于此速率的客户端将与多播传输断开连接。Clients that drop below this rate are disconnected from multicast transmissions.
-[/StreamCount: {2 | 3}] [/Fallback: {Yes | No}] 确定/Policy 的会话数 : Multistream- [/StreamCount:{2 | 3}] [/Fallback:{Yes | No}] Determines the number of sessions for /Policy:Multistream. 2 表示两个会话 (速度快、速度缓慢) , 3 表示三个会话 (慢、中、快) 。2 means two sessions (fast and slow), and 3 means three sessions (slow, medium, fast).
-[/Fallback: {Yes | No}] 确定是否断开客户端的连接将使用另一种方法来继续传输 (如果客户端) 支持此方法。- [/Fallback:{Yes | No}] Determines whether clients tha are disconnected will continue the transfer by using another method (if supported by the client). 如果你使用的是 WDS 客户端,则计算机将回退为单播。If you are using the WDS client, the computer will fall back to unicasting. Wdsmcast.exe 不支持回退机制。Wdsmcast.exe does not support a fallback mechanism. 此选项也适用于不支持 Multistream的客户端。This option also applies to clients that do not support Multistream. 在这种情况下,计算机将回退到其他方法,而不是移到较慢的传输会话。In that case, the computer will fall back to another method instead of moving to a slower transfer session.

示例Examples

若要设置服务器的 IPv4 地址范围,请键入:To set the IPv4 address range for the server, type:

wdsutil /Set-TransportServer /ObtainIpv4From:Range /start:239.0.0.1 /End:239.0.0.100

若要为服务器设置 IPv4 地址范围、端口范围和配置文件,请键入:To set the IPv4 address range, port range, and profile for the server, type:

wdsutil /Set-TransportServer /Server:MyWDSServer /ObtainIpv4From:Range /start:239.0.0.1 /End:239.0.0.100 /startPort:12000 /EndPort:50000 /Profile:10mbps

其他参考Additional References