Notification

Icon
Error

RDP - enable/disable - add/delete users - Enable or disable RDP and add or delete users

Posted: Tuesday, February 9, 2021 11:25:52 AM(UTC)
RobertoP

RobertoP

Member Original PosterPosts: 8
1
Like
Move up the comand you want deploy.

Check the lenguage of the computer;
for example, if the lenguage is italian, the group name isn't "Remote Desktop Users" but it's "Utenti desktop remoto".


Here the comands:

Enable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Disable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

Add RDP user:
net localgroup "Remote Desktop Users" "yourDomain\yourUser" /add

Delete RDP user:
net localgroup "Remote Desktop Users" "yourDomain\yourUser" /delete
RDP - enable/disable - add/delete usersDownload Package
DescriptionMove up the comand you want deploy.

Check the lenguage of the computer;
for example, if the lenguage is italian, the group name isn't "Remote Desktop Users" but it's "Utenti desktop remoto".


Here the comands:

Enable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Disable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

Add RDP user:
net localgroup "Remote Desktop Users" "yourDomain\yourUser" /add

Delete RDP user:
net localgroup "Remote Desktop Users" "yourDomain\yourUser" /delete
Final ActionNothing
Max. Duration5 min(s), 0 hour(s)
RescanNo
Steps
1. Enable RDP
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
2. Add RDP user
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command net localgroup "Remote Desktop Users" "yourDomain\yourUser" /add
3. Disable RDP
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
4. Delete RDP user
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command net localgroup "Remote Desktop Users" "yourDomain\yourUser" /delete

Active Discussions

Lansweeper Assigned Assets
by  anpatterson03   Go to last post Go to first unread
Last post: Yesterday at 11:50:46 PM(UTC)
Lansweeper Troubleshooting Helpdesk
by  brodiemac-too  
Go to last post Go to first unread
Last post: Yesterday at 8:46:21 PM(UTC)
Lansweeper Make agents regular users
by  JP-CPC   Go to last post Go to first unread
Last post: Yesterday at 7:32:54 PM(UTC)
Lansweeper Lansweeper updates without stopping whole IIS service
by  Hstr  
Go to last post Go to first unread
Last post: Yesterday at 10:32:17 AM(UTC)
Lansweeper Active Directory Groups not scanned properly
by  SCH   Go to last post Go to first unread
Last post: Yesterday at 7:10:23 AM(UTC)
Lansweeper Ticket Content Default Value
by  CPG  
Go to last post Go to first unread
Last post: 7/28/2021 8:45:12 PM(UTC)
Lansweeper New status to mimic Closed
by  chris.anderson   Go to last post Go to first unread
Last post: 7/28/2021 7:14:27 PM(UTC)
Lansweeper Change Management - Voting and Tracking
by  brodiemac-too  
Go to last post Go to first unread
Last post: 7/28/2021 2:48:01 PM(UTC)