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

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.....
maurice cristenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
Lasse BodilsenSystem AdministratorCommented:
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
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
If you are trying to increase it without RDS licenses it won't work
0
 
maurice cristenAuthor Commented:
thank u
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.