SenfoMix Posted July 30, 2024 Posted July 30, 2024 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
Nine Posted July 30, 2024 Posted July 30, 2024 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Solution SenfoMix Posted July 31, 2024 Author Solution Posted July 31, 2024 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)
rudi Posted July 31, 2024 Posted July 31, 2024 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!
SenfoMix Posted August 1, 2024 Author Posted August 1, 2024 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
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