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: Practical Usage of Robocopy

Quick Commands: $source='C:\vssSnapshot_F'$destination='\\DESTINATIONSERVER\F$'robocopy $source $destination /E /R:0 /NP /XD '$RECYCLE.BIN' 'System Volume Information' /xf 'pagefile.sys'…

PowerShell: Generate Random Password

Previous version that does not require System.Web assembly: https://blog.kimconnect.com/powershell-randompassword-function/ # This function will quickly generate…

PowerShell: Accessing the Reflection Assembly Class to Retrieve User Context

Step 1: Accessing Reflection Assembly namespace to call method Load with Windows Account Management as…