0

powershell 有没有办法在远程选项卡中更改高级系统设置?附上图片供参考。在此处输入图像描述

4

1 回答 1

0

尝试这个

[uint32]$atsc = 1
[uint32]$mfe = 1
$ts = Get-CimInstance -Namespace Root\CIMv2\TerminalServices -ClassName Win32_TerminalServiceSetting
Invoke-CimMethod -InputObject $ts -MethodName SetAllowTSConnections -Arguments @{AllowTSConnections = $atsc; ModifyFirewallException = $mfe}
于 2018-09-07T14:56:00.673 回答