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 LsAgent.ini
by  Orion Poplawski   Go to last post Go to first unread
Last post: Yesterday at 4:49:12 PM(UTC)
Lansweeper LsAgent for Windows command line options?
by  Orion Poplawski  
Go to last post Go to first unread
Last post: Yesterday at 4:47:53 PM(UTC)
Lansweeper LSagent force a scan
by  Orion Poplawski   Go to last post Go to first unread
Last post: Yesterday at 4:46:49 PM(UTC)
Lansweeper MS Edge Chromium LanSweeper Extension development
by  steveb  
Go to last post Go to first unread
Last post: 4/16/2021 10:59:56 PM(UTC)
Lansweeper Office 365 v2 Scanning Error
by  DJX   Go to last post Go to first unread
Last post: 4/16/2021 7:37:57 PM(UTC)
Lansweeper Database size growing too large
by  JTempleton  
Go to last post Go to first unread
Last post: 4/16/2021 5:19:22 PM(UTC)
Lansweeper Limit New Ticket Notifications
by  Jeff WP   Go to last post Go to first unread
Last post: 4/16/2021 4:40:43 PM(UTC)
Lansweeper Monitor as an asset
by  tman247  
Go to last post Go to first unread
Last post: 4/16/2021 4:04:19 PM(UTC)