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

Action Remote Uninstaller
by  hirogen   Go to last post Go to first unread
Last post: 7/15/2021 2:09:47 PM(UTC)
Lansweeper uVNC Portable (trying to replace LSRemote)
by  CyberCitizen  
Go to last post Go to first unread
Last post: 6/15/2021 11:40:21 PM(UTC)
Action Password Status
by  steveb   Go to last post Go to first unread
Last post: 5/20/2021 5:24:13 PM(UTC)
Lansweeper Verify a successful copy to user computer
by  Brandon  
Go to last post Go to first unread
Last post: 4/22/2021 9:09:50 PM(UTC)
Lansweeper Pablo
by  Pablo   Go to last post Go to first unread
Last post: 4/20/2021 8:05:07 PM(UTC)
Lansweeper Can Actions work when using when using a Ubuntu machine
by  mzipperer  
Go to last post Go to first unread
Last post: 4/1/2021 10:16:34 PM(UTC)
Lansweeper Remove user from local admin group
by  jhartley@alcona-county.net   Go to last post Go to first unread
Last post: 3/24/2021 4:27:30 PM(UTC)
Lansweeper Network Scanning
by  MZU  
Go to last post Go to first unread
Last post: 3/7/2021 8:23:10 AM(UTC)