Zia,
Here are the two LMHOSTS that you will need as well as the syntax for netdom
when creating the trusts:
=======================================================================
LMHOSTS file on the WINNT PDC: 192.168.1.30 "MY2KDOM \0x1B"
#PRE
LMHOSTS file on the WIN2K DC: 172.16.15.30 "MYNT4DOM \0x1B"
#PRE
NETDOM syntax:
netdom trust mynt4dom /D:my2kdomaim.com /User0:NTAdministrator
/Password0

asswordNT /UserD:2KAdministrator /PasswordD

assword2K /add
/twoway
============================================================================
==
Below is a rather long-winded explanation of everything! ;-)
Okay, let's start with the LMHOSTS file that you are going to write. It is
very important that have the spacing correct.
To move ahead with the example, let's establish a couple of things first.
1) your WINNT 4.0 domain has a NetBIOS name of mynt4dom and a DNS name of
mynt4domain.com
2) your WIN2000 AD domain has a NetBIOS name of my2kdom and a DNS name of
my2kdomain.com
3) you are using NTAdministrator \ PasswordNT as the user name\password for
the NT Domain Administrator account
4) you are using 2KAdministrator \ Password2K as the user name\password for
the 2K Domain Administrator account
5) The name and IP Address of the NT 4.0 Primary Domain Controller is NT4PDC
and 172.16.15.30
6) The name and IP Address of the WIN2K DC ( holding the PDC Emulator role )
is W2KDC and 192.168.1.30
If you want a MSKB Article to show you how to create the LMHOSTS files then
take a look at the first Article that Andrew gave you. Look at the bottom
and you will see a link to another MSKB article that will explain this.
So, sit down at the WINNT 4.0 PDC and open up NotePad ( not WordPad or MS
Word!!!! ) and enter the following:
192.168.1.30 "MY2KDOM \0x1B" #PRE
When you save this file in NotePad make sure that you do not save it as
LMHOSTS.txt......it is just LMHOSTS. There is no extension. Also, and this
is important, make sure that there are 15 'spaces' between the first " and
the \. What does this mean? After the IP Address ( I leave four spaces but
I do not think that this really matters ) you enter the NetBIOS domain name
of the WIN2000 AD Domain. You must begin - or open - this with the
quotation mark ( " ) as well as end - or close - it with the quotation mark.
You will note that 'my2kdom' has seven characters. So, you need to hit the
space bar eight times and then add the \0x1B". And it is also important
that the NetBIOS name be in all caps! So, save this on the WINNT 4.0 PDC in
c:\winnt\system32\drivers\etc ( the default location ). Step 1 is now
completed.
Now, sit down at the WIN2000 Domain Controller ( the one that holds the FSMO
Role of PDC Emulator ) in the W2K domain and create the following LMHOSTS
file:
172.16.15.30 "MYNT4DOM \0x1B" #PRE
Save this in the same location ( c:\winnt\system32\drivers\etc ). Note that
in this LMHOSTS file you would hit the space bar only seven times as the
NetBIOS name has eight characters! Step 2 is now completed.
BTW - how do you determine which DC holds the FSMO Role of PDC Emulator? If
you have only one WIN2000 DC in that domain / environment then it would be
that DC. However, if you have multiple DCs then you can look in the Active
Directory Users and Computers MMC, you can use replmon ( part of the Support
Tools ) or you can even use netdom. Let's take a look at that. Simply open
up a command prompt and enter the following: netdom query fsmo. You will be
give a response with ( hopefully ) five entries, one of which will be the
PDC Emulator. Go to the machine indicated there.
Open up a command prompt and simply enter the following: netdom trust
mynt4dom /D:my2kdomaim.com /User0:NTAdministrator /Password0

asswordNT
/UserD:2KAdministrator /PasswordD

assword2K /add /twoway
Watch how this might be chopped up in my posting of this. When you enter it
this would all be one continuous line.
Also, note the following: A) in the LMHOSTS file with the \0x1B that the 0
is the number zero and not the letter!
B) in the netdom syntax we have
/User0: and /Password0: - again, this is the number zero
HTH,
Cary