batch file to change registry: Maximum number of logged in users using remote desktop?

maurice cristen
maurice cristen used Ask the Experts™
on
batch file to change registry: Maximum number of logged in users using remote desktop?
i want to change this from registry:

Windows Key + R >> Type MMC.exe >> then Control + M >> Select Group Policy Object >> then Add >> then finish >> then OK

Double click on Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections. Limit Number of Connections = 999999. Restrict Remote Desktop Services users to a single Remote Desktop Services session = DISABLED.

Open in new window



in soemthing like this:
something like this: REG ADD "HKLM\SYSTEM\etc.....
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
System Administrator
Commented:
That would be in the following registry keys:

For: Restrict Remote Desktop Services users to a single Remote Desktop Services session = DISABLED
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
fSingleSessionPerUser     REG_DWORD     0x00000000

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fSingleSessionPerUser /t REG_DWORD /d 0

Open in new window

For: Limit Number of Connections = 999999
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
MaxInstanceCount    REG_DWORD    0x000f423f

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v MaxInstanceCount /t REG_DWORD /d 999999

Open in new window

btw:
Windows Key + R >> Type MMC.exe >> then Control + M >> Select Group Policy Object >> then Add >> then finish >> then OK
Can be replaced by: Windows Key + R >> Type gpedit.msc
Shaun VermaakSenior Consultant
Awarded 2017
Distinguished Expert 2018

Commented:
If you are trying to increase it without RDS licenses it won't work

Author

Commented:
thank u

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial