Search notes:

Registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

fDenyTSConnections

The value of fDenyTSConnections determines if another computer can connect to this computer with Remote Desktop Services.
If the value is 0, such connections are allowed, if it is 1, connections are disallowed.
The following PowerShell command line sets the value to 0 so that connections are allowed:
$null = new-itemProperty -path 'hklm:\SYSTEM\CurrentControlSet\Control\Terminal Server' -name fDenyTSConnections -propertyType DWord -value 0 -force
Github repository about-Windows-Registry, path: /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/allow-remote-connections.ps1

fSingleSessionPerUser

The value of fSingleSessionPerUser determines if a user reconnects to the same session later.
The following command line sets the value to 0:
$null = new-itemProperty -path 'hklm:\SYSTEM\CurrentControlSet\Control\Terminal Server' -name fSingleSessionPerUser -propertyType DWord -value 0 -force
Github repository about-Windows-Registry, path: /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/multiple-connections.ps1

Index