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: 7
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 Rescan Asset
by  marck1024   Go to last post Go to first unread
Last post: Today at 4:11:53 PM(UTC)
Lansweeper Allowing a role to create asset groups
by  mh6543   Go to last post Go to first unread
Last post: 2/26/2021 10:00:40 PM(UTC)
Lansweeper Export LsAgent Assets
by  steveb  
Go to last post Go to first unread
Last post: 2/26/2021 7:26:32 PM(UTC)
Lansweeper Asset Uptime "Asset on total"
by  Andy.S   Go to last post Go to first unread
Last post: 2/26/2021 3:07:35 PM(UTC)
Lansweeper Scanning for Static Routes?
by  ChrisParr  
Go to last post Go to first unread
Last post: 2/26/2021 12:43:28 PM(UTC)
Lansweeper lansweeperuser sql database permissions
by  David K.   Go to last post Go to first unread
Last post: 2/25/2021 11:54:38 PM(UTC)
Lansweeper Scanning certificates
by  Vincent Pollock  
Go to last post Go to first unread
Last post: 2/25/2021 8:35:11 PM(UTC)