Jump to content

Recommended Posts

Posted

here is my example "simple" script to have a pc join the domain

with the domain of "starwars", then you just type in the pc name you want.

tweak to your liking,

ShellExecute("sysdm.cpl")
sleep(1000)
ControlClick ( "System Properties", "", "[CLASS:Button; INSTANCE:2]" , "left" , 1 )
sleep(1000)
ControlClick ( "Computer Name/Domain Changes", "", "[CLASS:Button; INSTANCE:3]" , "left" , 1 )
sleep(1000)
Send("{TAB}starwars{SHIFTDOWN}{TAB}{TAB}{TAB}{SHIFTUP}")

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