What is the preferred method to programatically join a windows 7 machine to the domain?
I want to script this so that when a newly imaged machine is booted up it joins the domain. (I don't want to use Sysprep to do it as there are some other checks I want to run at the same time.)
As far as I can see, I can either use NetDom, or computer-add in Powershell.
Both of these theoretically mean I have to install "extra stuff" on the image, though - either RSAT to use netdom (or I could manually copy just that command) or the AD cmdlets for computer-add.
Anyone have any experience of these, or which is the "better" way? I don't really want to leave the end users with admin tools on their machines.
Thanks in advance,
Ben