Hi All,

Does anyone have a script to join a PC to a NT4 domain, just using the script and no external apps?

I found a script last week that worked however overwrote it and cant find the site again.

Any help would be great.

Thanks

Brett

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Re: Join Nt4 Domain using VBS by Torgeir

Torgeir
Mon Feb 09 04:24:59 CST 2004

"brett.wilson@cgey.com" wrote:

> Does anyone have a script to join a PC to a NT4 domain, just using the script and no external apps?
>
> I found a script last week that worked however overwrote it and cant find the site again.

Hi

For WinXP or better:

JoinDomainOrWorkGroup Method in Class Win32_ComputerSystem
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/joindomainorworkgroup_method_in_class_win32_computersystem.asp

An example on JoinDomainOrWorkGroup:
http://www.microsoft.com/technet/scriptcenter/compmgmt/ScrCM31.asp


For NT4 and Win2k, you need to use an external utility, e.g. Net.exe:

http://groups.google.com/groups?selm=3FCE3A6C.932E8E4F@hydro.com



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter



Re: Join Nt4 Domain using VBS by Torgeir

Torgeir
Mon Feb 09 04:47:32 CST 2004

"Torgeir Bakken (MVP)" wrote:

> For NT4 and Win2k, you need to use an external utility, e.g. Net.exe:
>
> http://groups.google.com/groups?selm=3FCE3A6C.932E8E4F@hydro.com

That is of course Netdom.exe and not Net.exe...



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter