Jump to content
phil37

system information cannot control

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

Share this post


Link to post
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.

Share this post


Link to post
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

×
×
  • Create New...