Jump to content

Recommended Posts

Posted

anyone set up an AutoIt automated network Id??

 

if you have PLEASE! PLEASE! PLEASE! share!!!

 

*please edit the code deleting your inputted network and user/password for your safety! :D

Posted

Well I haven't a script to do that and bit busy at the moment but I think a key help would be to run this

EXPLORER.EXE /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

which brings up the My Computer window and then its just a case of sending keystrokes from then on.

 

Hope this helps

 

regards

 

Simon

Posted

Just knocked up (while waiting for supplier to get back to me)

Opt("WinWaitDelay",500)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Run("EXPLORER.EXE /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
WinWait("My Computer","")
If Not WinActive("My Computer","") Then WinActivate("My Computer","")
WinWaitActive("My Computer","")
Send("{ALTDOWN}{ENTER}{ALTUP}")
WinWait("System Properties","")
If Not WinActive("System Properties","") Then WinActivate("System Properties","")
WinWaitActive("System Properties","")
send("{CTRLDOWN}{TAB}{CTRLUP}{ALTDOWN}N{ALTUP}")
WinWait("Network Identification Wizard","")
If Not WinActive("Network Identification Wizard","") Then WinActivate("Network Identification Wizard","")
WinWaitActive("Network Identification Wizard","")

 

which gets you to the point where you'll need to take over (asI've never used NetworkID - what does it do?) but hopefully the hard parts done and you add the rest :)

 

regards

 

Simon

 

PS Might be an idea to break up the send statements with a few sleeps in between just ensure windoze keeps up :)

  • Thanks 1
Posted
Do you know you can use netdom to name the computer and join it to the network? That way you're not relying on autoit sending the right key presses to the right dialogues etc (which it's good at but occasionally gets wrong :-))
Posted

Right Finally got round to finishing it, bit primative but does what i wanted it to do! Thanks for your help, o and @SimpleSi network id joins a PC to a domain.

 

 

Code attached

 

Opt("WinWaitDelay",500)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Run("EXPLORER.EXE /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
WinWait("My Computer","")
If Not WinActive("My Computer","") Then WinActivate("My Computer","")
WinWaitActive("My Computer","")
Send("{ALTDOWN}{ENTER}{ALTUP}")
WinWait("System Properties","")
If Not WinActive("System Properties","") Then WinActivate("System Properties","")
WinWaitActive("System Properties","")
send("{CTRLDOWN}{TAB}{CTRLUP}{ALTDOWN}N{ALTUP}")
WinWait("Network Identification Wizard","")
If Not WinActive("Network Identification Wizard","") Then WinActivate("Network Identification Wizard","")
WinWaitActive("Network Identification Wizard","")

ControlClick("Network Identification Wizard","Welcome to the Network Identification Wizard","&Next >")	
ControlClick("Network Identification Wizard","","&Next >")
ControlClick("Network Identification Wizard","","&Next >")
ControlClick("Network Identification Wizard","","&Next >")
ControlClick("Network Identification Wizard","","&Next >")
WinWaitActive("Network Identification Wizard","")

Sleep(1000)
Send("{TAB}")
Send("Domain Name")	
Sleep(1000)
ControlClick("Network Identification Wizard","","&Next >")	

Sleep(1000)
Send("Admin User")	
Send("{TAB}")
Sleep(200)	
Send("Password")	
Send("{TAB}")
Sleep(200)
Send("Domain name")	

ControlClick("Domain User Name and Password","Type the name and password of an account with permission to join the domain.","Button1")	
ControlClick("Network Identification Wizard","","&Close >")

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