box_l Posted May 28, 2008 Posted May 28, 2008 hi all, the script needs to add the computer to ad based on the logged on (authenticated) username, but increment it every time i have tried with adodb recordsets but am unable to get the computernames that match the looged on user. any ideas? TIA BoX
techyphil Posted June 2, 2008 Posted June 2, 2008 umm? I'd user autoit with netdom.. autoit will grab the username then i'd get it to prompt for the next number. Or you could make it write to a share and keep counting up from a txt file somewhere. Prolly be quicker to prompt for a number and press OK.. it will then go thru and run netdom to join domain and rename the machine name. I've done it that way in the past. Oh if your ghosting, ensure you newsid first Cheers
box_l Posted June 4, 2008 Author Posted June 4, 2008 techyphil thanks for the reply, but i will be using just the one script that writes a joindomain.vbs to the c: drive, puts in an auto logon to the registry, a runonce for the joindomain.vbs , removes the machine from the domain and reboots. the pc then auto logs on runs the joindomain.vbs (which deletes itself!) and then joins the domain. this bit already works. the thing is that the 120 laptops need renaming at the same time and i wanted to automate that bit too. thanks anyway. BoX
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now