Posted On March 8, 2022

PowerShell: Unlimit RDP Sessions

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: Unlimit RDP Sessions
$tsRegHive='REGISTRY::HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server'
Set-ItemProperty -Path $tsRegHive -Name fSingleSessionPerUser -value 0
Set-ItemProperty -Path $tsRegHive -Name fdenyTSConnections -value 0
get-itemproperty $tsRegHive

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Windows File Migration Tool Using VSS & FastCopy

Update: FastCopy doesn't properly update NTFS permissions of parent directories nor files if those items…

PowerShell: Adding a New Domain Controller

Error when trying to run DCPROMO on a Windows 2019 Server: ---------------------------Active Directory Domain Services…

PowerShell: Function to Add/Remove Local Host Record

Searching through my 'magic bag of tricks,' there appears to be this little snippet that…