Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: trust relationship bet. this workstation & the primary domain failed

14 Nov 2010   #1

Win7 Home Premium 64-bit
 
 
trust relationship bet. this workstation & the primary domain failed

Hello, I need help again. We have several computers withWin7 Ent and Pro 64 and 32 bit. . For some i-dont-know reason, it showed 'the trust relationship between this workstation & the primary domain failed' when we login. It happened few times already. The issue is resolved if we reconnect the pcs to the domain. Please lhelp me understand why this keeps happening and the if there is a permanent fix. I will appreciate all ideas.

My System SpecsSystem Spec
.

14 Nov 2010   #2

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

A client had the same problem; here is what we did to fix it.

Step 1: Make sure the Date/Time/Time Zone are correct on all DC's. Connect to the internet and update the time.
Step 2: Get and take all Microsoft Updates. Reboot as required. Do one DC at a time.
Step 3: Shutdown (i.e. power off) all but one DC. Wait about 5 minutes and then shutdown the Last DC.
Step 4: Wait about 5 minutes and then turn ON the Last DC that was turned off.
Step 5: Wait about 5 minutes and then turn on all remaining DCs.
Step 6: Wait 30 minutes and then unjoin and reboot any computer that was not working. Set the Time/Date/Time Zone and rejoin it to the domain.

The above should correct the problem and prevent other machines from dis-joining.
My System SpecsSystem Spec
14 Nov 2010   #3

Win7 Home Premium 64-bit
 
 

thanks a lot.. will try it first and i will let you know...
My System SpecsSystem Spec
.


22 Nov 2010   #4

Win7 Home Premium 64-bit
 
 

Sorry, i was thinking of all clients being affected. So we cant do what you advise. What about if there are only few users who are affected? Like 2-5 users? PLease share ideas.
My System SpecsSystem Spec
22 Nov 2010   #5

Windows 7 Enterprise
 
 

We had this problem too. Now Resolved. The easy way.

Firstly, an explaination of the situation:
I image the same PC many times in a week. To make it simple, I'l refer to only one of my (four) machines.
Now when I have an image on this machine, the Computer Name is MFBOX2 as assigned by the DNS. It is connected to the domain as MFBOX2 in an OU.
I then downloaded another image onto that PC. The computer name was also called MFBOX2, again from the DNS.
I then removed that 2nd image from the domain, and renamed the computer to IMAGING-SCMS4.
I uploaded that image (for my backups) and downloaded the first image again.

This is where you'll run into the above problem.

Problem Explained:
Windows thinks it is still connected to the domain.
The domain no longer holds MFBOX2 anymore, as it was removed previously.
Windows says to the DC, "Hello, log this person in please."
The DC replies, "Who are you? Im sure you just left." and does not trust the windows machine anymore.

Quote   Quote: Originally Posted by temmari View Post
The issue is resolved if we reconnect the pcs to the domain.
Your right.

Windows then says, "Ok, whatever. Bye." and produces the error message.
By rejoining windows to the domain, the Domain Controller now recognises it again, and the trusted relationship is regained.

In short, what I believed happened with you, assuming you dont image, is that somehow the computer object was removed from the DC manually and not from the PC in question.

Sorry, I did try to make it technical, but analogies are more fun.
My System SpecsSystem Spec
22 Nov 2010   #6

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by temmari View Post
Sorry, i was thinking of all clients being affected. So we cant do what you advise. What about if there are only few users who are affected? Like 2-5 users? PLease share ideas.
trust relationship bet. this workstation & the primary domain failed

The above will work for 2 or 3 machines as well.

What we have seen happen is that for no reason the AD database is out of sync or has some very minor corruption that cannot be auto-corrected while the DC is on or it is really something we could never figure out what it was (all speculations). Microsoft's Engineers could not directly find the problem. But complete rebooting your Domain Controllers works. If you know one DC is running better than another that may be the last one you want to turn off.

If you want to try an interim step you could just power cycle each DC one at a time waiting 15 minutes between each DC reboot. Assuming you are cannot shutdown all your DCs at the same time.

All this is inherent of Windows needing to be rebooted every once and a while. We assume this is why the complete Domain Shutdown fixed all issues. Currently on all my accounts I have the DCs setup to reboot once a week at different times. Say DC1 reboots on Friday late at night, DC2 reboots on Saturday and DC3 Reboots Sunday on a 3 DC Domain. This has resolved a lot of issues, before the DCs would run 24x7x365 with no reboot unless there was a critical Microsoft Update. Microsoft Updates for DCs sometimes it could be months before you get a reboot. -WS
My System SpecsSystem Spec
22 Nov 2010   #7

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by xarden View Post
We had this problem too. Now Resolved. The easy way.

Firstly, an explaination of the situation:
I image the same PC many times in a week. To make it simple, I'l refer to only one of my (four) machines.
Now when I have an image on this machine, the Computer Name is MFBOX2 as assigned by the DNS. It is connected to the domain as MFBOX2 in an OU.
I then downloaded another image onto that PC. The computer name was also called MFBOX2, again from the DNS.
I then removed that 2nd image from the domain, and renamed the computer to IMAGING-SCMS4.
I uploaded that image (for my backups) and downloaded the first image again.

This is where you'll run into the above problem.

Problem Explained:
Windows thinks it is still connected to the domain.
The domain no longer holds MFBOX2 anymore, as it was removed previously.
Windows says to the DC, "Hello, log this person in please."
The DC replies, "Who are you? Im sure you just left." and does not trust the windows machine anymore.

Quote   Quote: Originally Posted by temmari View Post
The issue is resolved if we reconnect the pcs to the domain.
Your right.

Windows then says, "Ok, whatever. Bye." and produces the error message.
By rejoining windows to the domain, the Domain Controller now recognises it again, and the trusted relationship is regained.

In short, what I believed happened with you, assuming you dont image, is that somehow the computer object was removed from the DC manually and not from the PC in question.

Sorry, I did try to make it technical, but analogies are more fun.
I think what xarden is talking about here is:

If you take an image of a machine that has already been added to a domain and then use it on another machine you will have issues, and there can be many.

“Best Practice” is to never add your image machine to the domain. Work out your entire configuration; make an image, then test the image by adding that machine to the domain. If it works then you are done and you have your non-joined image. If it does not, you dis-join the test machine from the domain, wipe it, and put your saved non-joined image back on that machine in the un-joined state and fix your configuration. You keep doing this until you get an image that works on the domain but is not joined to the domain.

Next: If you image a machine join it to a domain, then rename it to another name of a machine what is no longer in use but the machine name is still in AD (in other words the old machine was never dis-joined from the domain) you will run into issues because AD stores the GUID of the machine. So even though the machine has been added to the domain and is named, a name that is in AD the GUID will not match and you will have issues. You should always dis-join any machine you are going to remove from the domain and make sure its name is deleted out of AD. If you wish to re-use a machine name then it is not problem when you add the new machine to the domain. (wordy sorry about that) -WS
My System SpecsSystem Spec
22 Nov 2010   #8

Windows 7 Enterprise
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
I think what xarden is talking about here is:

If you take an image of a machine that has already been added to a domain and then use it on another machine you will have issues, and there can be many.
Only if the image is used on multiple machines with the same name, at the same time.

Quote:
Next: If you image a machine join it to a domain, then rename it to another name of a machine what is no longer in use but the machine name is still in AD (in other words the old machine was never dis-joined from the domain) you will run into issues because AD stores the GUID of the machine. So even though the machine has been added to the domain and is named, a name that is in AD the GUID will not match and you will have issues.

Also true.
However, I have successfully managed to move a joined-domain image from one machine to another without problems, as long as the original machine gets wiped.
If it doesnt get wiped, then you've got the problem in the first quote.

Quote:
You should always dis-join any machine you are going to remove from the domain and make sure its name is deleted out of AD. If you wish to re-use a machine name then it is not problem when you add the new machine to the domain. (wordy sorry about that) -WS
You dont necessisarily need to dis-join... rather than remove from AD once the machine no longer exists, or has been reimaged and exists under a different name.
My System SpecsSystem Spec
22 Nov 2010   #9

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by xarden View Post
Quote   Quote: Originally Posted by WindowsStar View Post
I think what xarden is talking about here is:

If you take an image of a machine that has already been added to a domain and then use it on another machine you will have issues, and there can be many.
Quote   Quote: Originally Posted by xarden View Post
Only if the image is used on multiple machines with the same name, at the same time.
Same image on many machines with the same name. You cannot do that unless they are all on different domains????
Quote:
Quote:
Next: If you image a machine join it to a domain, then rename it to another name of a machine what is no longer in use but the machine name is still in AD (in other words the old machine was never dis-joined from the domain) you will run into issues because AD stores the GUID of the machine. So even though the machine has been added to the domain and is named, a name that is in AD the GUID will not match and you will have issues.
Quote   Quote: Originally Posted by xarden View Post
Also true.
However, I have successfully managed to move a joined-domain image from one machine to another without problems, as long as the original machine gets wiped.
If it doesnt get wiped, then you've got the problem in the first quote.
Quote:
You should always dis-join any machine you are going to remove from the domain and make sure its name is deleted out of AD. If you wish to re-use a machine name then it is not problem when you add the new machine to the domain. (wordy sorry about that) -WS
Quote   Quote: Originally Posted by xarden View Post
You dont necessisarily need to dis-join... rather than remove from AD once the machine no longer exists, or has been reimaged and exists under a different name.
Respectfully this is a rookie mistake. If you pull a machine and don't remove it from the domain you will most likely forget to remove the name from AD. It is best if you are removing a machine to just un-join it that way you are sure you have done it right. I know there are times you CANNOT do this hard drive crashes (etc.) but in that case you would be removing the name from AD manually while re-imaging the machine to get it back on line. I see so many AD's that are polluted with all kinds of names that never get removed because they don't un-join the machine or forget to remove the name from AD. This gets much much worse when you have 4, 5 or 10 Administrators and everyone is just removes the machine without any thought to AD. Then you get some junior admin trying to add a machine with a name that is already in AD and they don't know why and spend 3 days trying to figure it out, huge waste of time. -WS
My System SpecsSystem Spec
23 Nov 2010   #10

Windows 7 Enterprise
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
Same image on many machines with the same name. You cannot do that unless they are all on different domains????
An example would be to build on machine A, join AD, make image, drop image onto another machine, use both machines.
Ensuring both machines are of exact motherboard specs/chipsets, this will work without the disk or OS crashing.

Perhaps I should specify two terms we also use regarding images: Gold, and Prep.
Gold images are build on 3 machines, all identical. These images do not get deployed anywhere except these three machines, solely for the purpose of using Box2 to build ImageA, Box3 for ImageB, Box4 for ImageC. When finished building ImageA, deploy ImageD to Box2. When finished with ImageB, but need more work on ImageA, deploy ImageA on Box3.

Prep images, are the above mentioned Gold's, which have run through the sysprep procedure. At reboot, the image is taken before restarting.
The Prep images are the ones that get deployed to the field.

Quote:
Respectfully this is a rookie mistake. If you pull a machine and don't remove it from the domain you will most likely forget to remove the name from AD. It is best if you are removing a machine to just un-join it that way you are sure you have done it right. I know there are times you CANNOT do this hard drive crashes (etc.) but in that case you would be removing the name from AD manually while re-imaging the machine to get it back on line. I see so many AD's that are polluted with all kinds of names that never get removed because they don't un-join the machine or forget to remove the name from AD. This gets much much worse when you have 4, 5 or 10 Administrators and everyone is just removes the machine without any thought to AD. Then you get some junior admin trying to add a machine with a name that is already in AD and they don't know why and spend 3 days trying to figure it out, huge waste of time. -WS
I agree.
Our dev domain is full of obsolete machines that have been reimaged without prior disjoining.

The senior site techs who do the imaging in the production labs/classrooms should be aware of the proper procedure you describe. They should be disjoining the current machine before deploying a new/updated Prep image.
We dont do this in dev.

Once deployed, the machine is restarted. During sysprep, several custom scripts are run. One picks up the machine name from DNS, and attempts to join AD. But if it already exists in AD (error 5?), then a random alphanumeric name is created and used instead.
This is partly to ensure the machine gets joined flawlessly for the enduser in the morning.
2nd partly, if a machine fails to boot due to whatever error (tweaking failed, virus, etc.) and the machine cannot boot to the OS to be able to be disjoined, The machine simply get reimaged.
The latter is what would be most contributing to any obsolete items in the production AD.

So you're most certainly not wrong.
But we also have several systems that need to work together, so we do have a couple 'less than ideal' ways of going about things. But it all works, and it all works very well in the end.
My System SpecsSystem Spec
Reply

 trust relationship bet. this workstation & the primary domain failed





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 02:52 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33