Author |
Message |
Tony Petrill #1 / 8
|
 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 |
|
 |
Bumpkin #2 / 8
|
 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 |
|
 |
Tony Petrill #3 / 8
|
 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 |
|
 |
Manfred Brau #4 / 8
|
 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 |
|
 |
Tony Petrill #5 / 8
|
 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 |
|
 |
Curtis J. Mat #6 / 8
|
 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 |
|
 |
Hillbill #7 / 8
|
 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 |
|
 |
Curtis Mat #8 / 8
|
 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 |
|
|
|