Dear all,
I am trying to create a script that will join a Xp pc to a nt4 domain. However i need to be able to pass the details of the domain admin through to join the domain. Below is the script that i am using to join the domain. However it needs to be able to parse the domain administrator details to join the domain.
Set net = WScript.CreateObject("WScript.Network")
local = net.ComputerName DomainName = "MyDomain"
UserAccount = "testuser"
set group = GetObject("WinNT://"& local &"/Administrators")
group.Add "WinNT://"& DomainName &"/"& UserAccount &""
Any help on the above code or other code would be great.
Thanks
Brett
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...