sysprep, vbscript: JoinDomain, cmdlines.txt

E

EricGus

--JoinDomain--
Currently, I am joining the domain using the JoinDomain function with an
autogenerated name. I wish to use specify a name and use a script to join
the domain and the info presented by MS is not clear on when the script may
be run.

Ref.chm included with XPsp2 deploy tools states:
----8<--snip------------------
instead of using JoinDomain, the recommended best practice is to use
Active Directory Services Interface (ADSI) and Windows Script Host (WSH) to
create a Visual Basic Script (VBScript) that automates the creation of
computer accounts. A sample script is given in the Microsoft Knowledge Base,
article Q315273
(http://support.microsoft.com/default.aspx?scid=kb;en-us;q315273).
----8<--snip------------------

Q: Can I use vbscript and WMI queries via a call from cmdlines.txt?
Q: Can I temporarily map a drive via the script or cmdlines.txt with
supplied credentials?

My final goal is to use WMI to pull the MAC address of the computer, query a
database (even if it's a flat text file) with the mac address which will
return a workstation name, then join the domain with the proper workstation
name. A future addition to the script would be to have it placed in a
specific OU.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top