Powershell to change Advance System Properties

333 Views Asked by At

Is there a way in powershell to change advance system settings in the remote tab? Picture is attached for reference.enter image description here

1

There are 1 best solutions below

2
Richard Siddaway On

Try this

[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}