Jump to content

how i add a user (everyone) to access RDP


Go to solution Solved by SenfoMix,

Recommended Posts

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

Link to comment
Share on other sites

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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