Jump to content

system information cannot control


phil37
 Share

Recommended Posts

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

 

image.thumb.png.3df324182c5dd9b9e2a3db696e950815.png

Link to comment
Share on other sites

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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

  • 5 weeks later...

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...