Powershell更改高级系统属性

时间:2018-09-07 14:24:02

标签: powershell system-setting

powershell中是否有办法在“远程”选项卡中更改高级系统设置?随附图片供参考。enter image description here

1 个答案:

答案 0 :(得分: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}