Jump to content
Pulseway 9.14 🔥

Featured Replies

Posted

Script enables RDP if its disabled, and enables if its disabled.

 

 

#By eDecisions
$RDP = (Get-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server').fDenyTSConnections

If ($RDP -eq 0) { 

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value "1"

}
 
IF ($RDP -eq 1) { 

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value "0"

}

Create an account or sign in to comment