Add a computer to domain 
Author Message
 Add a computer to domain

 Hi All,

 I'm looking for a way to have a Winnt 4.0 workstation join an NT 4.0 domain

using VBScript/ADSI.

I have seen the MSDN samples that allow this for win2k, but these won't work

for NT 4.0.

Does anyone have an idea ?

Thanks

Tony Petrilli



Tue, 16 Jul 2002 03:00:00 GMT  
 Add a computer to domain
Tony,

I am looking for the same thing, and I think I have found half of my
solution. I want to change the computer name and then add it to the domain.
Anyway, to add it to the domain, look at the netdom.exe utility included
with the nt resource kit.

Joey


Quote:
> Hi All,

>  I'm looking for a way to have a Winnt 4.0 workstation join an NT 4.0
domain

> using VBScript/ADSI.

> I have seen the MSDN samples that allow this for win2k, but these won't
work

> for NT 4.0.

> Does anyone have an idea ?

> Thanks

> Tony Petrilli



Sun, 21 Jul 2002 03:00:00 GMT  
 Add a computer to domain
Hi Joey,

Our build currently uses netdom to perform this function.

We are looking for a method to improve upon it ...
Thanks

Tony ...

Quote:
> Tony,

> I am looking for the same thing, and I think I have found half of my
> solution. I want to change the computer name and then add it to the
domain.
> Anyway, to add it to the domain, look at the netdom.exe utility included
> with the nt resource kit.

> Joey



> > Hi All,

> >  I'm looking for a way to have a Winnt 4.0 workstation join an NT 4.0
> domain

> > using VBScript/ADSI.

> > I have seen the MSDN samples that allow this for win2k, but these won't
> work

> > for NT 4.0.

> > Does anyone have an idea ?

> > Thanks

> > Tony Petrilli



Sun, 21 Jul 2002 03:00:00 GMT  
 Add a computer to domain
Hi,

 it can be done with WSH/ADSI. I have attached a sample. BUT BE AWARE: IT
ADDs THE COMPUTER WELL, BUT IS NOT TESTET. MY TESTS ARE IN FRONT OF ME IN
THE NEXT WEEKS!!

 You just could give it a try.

Best regards,
Manfred Braun

(Private)
Lange Roetterstrasse 7
D68167 Mannheim
Germany


(Remove the anti-spam-underscore to mail me!)



Quote:
> Hi Joey,

> Our build currently uses netdom to perform this function.

> We are looking for a method to improve upon it ...
> Thanks

> Tony ...


> > Tony,

> > I am looking for the same thing, and I think I have found half of my
> > solution. I want to change the computer name and then add it to the
> domain.
> > Anyway, to add it to the domain, look at the netdom.exe utility included
> > with the nt resource kit.

> > Joey



> > > Hi All,

> > >  I'm looking for a way to have a Winnt 4.0 workstation join an NT 4.0
> > domain

> > > using VBScript/ADSI.

> > > I have seen the MSDN samples that allow this for win2k, but these
won't
> > work

> > > for NT 4.0.

> > > Does anyone have an idea ?

> > > Thanks

> > > Tony Petrilli

begin 666 CreateComputerAccount01.vbs
<encoded_portion_removed>


Mon, 22 Jul 2002 03:00:00 GMT  
 Add a computer to domain
Thank you very much Manfred,

I'll try it out right away .....

Tony Petrilli

Quote:
> Hi,

>  it can be done with WSH/ADSI. I have attached a sample. BUT BE AWARE: IT
> ADDs THE COMPUTER WELL, BUT IS NOT TESTET. MY TESTS ARE IN FRONT OF ME IN
> THE NEXT WEEKS!!

>  You just could give it a try.

> Best regards,
> Manfred Braun

> (Private)
> Lange Roetterstrasse 7
> D68167 Mannheim
> Germany


> (Remove the anti-spam-underscore to mail me!)



> > Hi Joey,

> > Our build currently uses netdom to perform this function.

> > We are looking for a method to improve upon it ...
> > Thanks

> > Tony ...


> > > Tony,

> > > I am looking for the same thing, and I think I have found half of my
> > > solution. I want to change the computer name and then add it to the
> > domain.
> > > Anyway, to add it to the domain, look at the netdom.exe utility
included
> > > with the nt resource kit.

> > > Joey



> > > > Hi All,

> > > >  I'm looking for a way to have a Winnt 4.0 workstation join an NT
4.0
> > > domain

> > > > using VBScript/ADSI.

> > > > I have seen the MSDN samples that allow this for win2k, but these
> won't
> > > work

> > > > for NT 4.0.

> > > > Does anyone have an idea ?

> > > > Thanks

> > > > Tony Petrilli



Tue, 23 Jul 2002 03:00:00 GMT  
 Add a computer to domain
Could you post that code?

Thanks.


Quote:
> Thank you very much Manfred,

> I'll try it out right away .....

> Tony Petrilli


> > Hi,

> >  it can be done with WSH/ADSI. I have attached a sample. BUT BE AWARE:
IT
> > ADDs THE COMPUTER WELL, BUT IS NOT TESTET. MY TESTS ARE IN FRONT OF ME
IN
> > THE NEXT WEEKS!!

> >  You just could give it a try.

> > Best regards,
> > Manfred Braun

> > (Private)
> > Lange Roetterstrasse 7
> > D68167 Mannheim
> > Germany



Tue, 27 Aug 2002 03:00:00 GMT  
 Add a computer to domain
dim adsDom, adsCPU, strDomain, strCPU
strDomain = InputBox("Enter The Name of the Domain","DOMAIN NAME")
strCPU = InputBox("Enter The Name of the Computer to add to the Domain",
"COMPUTER NAME")
set adsDom = GetObject("WinNT://" & strDomain)
set adsCPU = adsDom.Create("Computer", strCP)



Quote:
> Could you post that code?

> Thanks.



> > Thank you very much Manfred,

> > I'll try it out right away .....

> > Tony Petrilli


> > > Hi,

> > >  it can be done with WSH/ADSI. I have attached a sample. BUT BE AWARE:
> IT
> > > ADDs THE COMPUTER WELL, BUT IS NOT TESTET. MY TESTS ARE IN FRONT OF ME
> IN
> > > THE NEXT WEEKS!!

> > >  You just could give it a try.

> > > Best regards,
> > > Manfred Braun

> > > (Private)
> > > Lange Roetterstrasse 7
> > > D68167 Mannheim
> > > Germany



Tue, 27 Aug 2002 03:00:00 GMT  
 Add a computer to domain
Thanks,

Is there a way to remove a computer from the domain?

Curtis


Quote:
> dim adsDom, adsCPU, strDomain, strCPU
> strDomain = InputBox("Enter The Name of the Domain","DOMAIN NAME")
> strCPU = InputBox("Enter The Name of the Computer to add to the Domain",
> "COMPUTER NAME")
> set adsDom = GetObject("WinNT://" & strDomain)
> set adsCPU = adsDom.Create("Computer", strCP)



> > Could you post that code?

> > Thanks.



> > > Thank you very much Manfred,

> > > I'll try it out right away .....

> > > Tony Petrilli


> > > > Hi,

> > > >  it can be done with WSH/ADSI. I have attached a sample. BUT BE
AWARE:
> > IT
> > > > ADDs THE COMPUTER WELL, BUT IS NOT TESTET. MY TESTS ARE IN FRONT OF
ME
> > IN
> > > > THE NEXT WEEKS!!

> > > >  You just could give it a try.

> > > > Best regards,
> > > > Manfred Braun

> > > > (Private)
> > > > Lange Roetterstrasse 7
> > > > D68167 Mannheim
> > > > Germany



Wed, 28 Aug 2002 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Add computer to domain

2. Add computer to domain

3. Add/join computer to Windows 2000 domain

4. How to add a computer accout to the domain

5. Ghost Sysprep XP add computer to domain inside OU

6. Add computer in domain with vbs or tools call by vbs

7. Add a computer to a domain

8. add user to every computer in domain

9. Adding Computer to Domain script

10. Adding computer to domain using WSH?

11. Adding computer account to w2k domain

12. Script to add computer to AD domain

 

 
Powered by phpBB® Forum Software