Jump to content

how i add a user (everyone) to access RDP


Go to solution Solved by SenfoMix,

Recommended Posts

Posted

Hello, I want to add a user (everyone) to access remote desktop on my win10 computer, how can I do this with autoit? I couldn't find it with cmd either, maybe it is possible with autoit

Ekran görüntüsü 2024-07-30 135753.png

  • Solution
Posted
17 hours ago, Nine said:

I do not know if it is possible thru command line.  Nevertheless, I believe you could perform such a task using UIAutomation with the screen you just showed.

I found the answer to my problem.

RunWait(@ComSpec & ' /c ' & 'net localgroup "Remote Desktop Users" everyone /add',@SystemDir)

 

Posted

Hello,

If you have to struggle with multiple localizations (languages) of windows, then wrap it as a powershell script addressing the always constant well known SID S-1-5-32-555 for the local group of "remote desktop Users" (e.g. in German the name is "Remotedesktopbenutzer")

 

$sid = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-555")
$group = $sid.Translate([System.Security.Principal.NTAccount])
$groupName = $group.Value.Split('\')[1]

$userName = "yourUsername"
Add-LocalGroupMember -Group $groupName -Member $userName

 

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Posted
22 hours ago, rudi said:

Hello,

If you have to struggle with multiple localizations (languages) of windows, then wrap it as a powershell script addressing the always constant well known SID S-1-5-32-555 for the local group of "remote desktop Users" (e.g. in German the name is "Remotedesktopbenutzer")

 

$sid = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-555")
$group = $sid.Translate([System.Security.Principal.NTAccount])
$groupName = $group.Value.Split('\')[1]

$userName = "yourUsername"
Add-LocalGroupMember -Group $groupName -Member $userName

 

Thanks bro, i dont forget your note

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...