SenfoMix Posted July 30 Share Posted July 30 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 Link to comment Share on other sites More sharing options...
Nine Posted July 30 Share Posted July 30 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. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Solution SenfoMix Posted July 31 Author Solution Share Posted July 31 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) Link to comment Share on other sites More sharing options...
rudi Posted July 31 Share Posted July 31 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 SenfoMix 1 Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
SenfoMix Posted August 1 Author Share Posted August 1 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now