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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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

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 SpecialistCommented:
If you are trying to increase it without RDS licenses it won't work
0
maurice cristenAuthor Commented:
thank u
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.