Link to home
Start Free TrialLog in
Avatar of croag
croagFlag for United States of America

asked on

Adding a computer to a domain by way of a VBS script?

Does anyone have a script that will add a computer to a 'ourdomain' ...and we can have our domain admin and pw in the VBS script (or any other script)? So..we can essentially just walk to the computer, click the file, and it adds the computer to the domain?


And restarts the computer if possible? Anyone heard of this?


This should work with windows 2000k and/or xp clients. (or 2 different scripts for each client os if possible)

Thanks,

croag
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tmorrison3,

I gave a link to the same book and the same code in my post.
Avatar of tmorrison3
tmorrison3

I saw that - sorry - I will read a little more diligently next time
It's okay, I've done the same thing myself.
I have tried this script, but I keep getting a error.

Error:The RPC server is unavailable
Code: 800706BA
Source: SWbemLocator

Any ideas as to what is wrong?

jottman which one? Maybe start your own question so all experts can be invloved in it. :)