phil37 0 Posted December 4, 2019 Hi All, I want to change the computer name and domain, but autoit not working in ControlClick. OS is Win 10 Professional Run("control sysdm.cpl,,1")-->Working WinWaitActive("系統內容")-->Maybe working ControlClick("系統內容","變更(&C)...","[CLASS:Button; INSTANCE:2]")-->Not working Share this post Link to post Share on other sites
seadoggie01 161 Posted December 4, 2019 I would suggest using a command to do this instead of automating this through clicks. Changing the computer name can be done like this: WMIC computersystem where caption='OLD_NAME' rename 'NEW_NAME' And it sounds like the domain is usually set via group policy. It may be able to be changed in the registry, however. See this link. All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scripts Share this post Link to post Share on other sites
ModemJunki 21 Posted January 3, 2020 In pure AutoIT, no need to know the old name of the system. JScript had created a function which I used with good success. To join to domain, maybe this answer is the one to try: Good luck! Always carry a towel. Share this post Link to post Share on other sites