Microsoft Product Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, 20 December 2012

Fix "the trust relationship between this workstation and the primary domain failed" Error

Posted on 18:08 by Unknown

I normally put references for my posts at the end of the post, but because I have shamelessly cut an paste a large chunk of this respectable blogger's page, due to its absolute gold value, I felt I needed to acknowledge them at the beginning.

All thanks for this post must go to Dan Peterson who posted the original info (and background if you wish to read it) at:
http://implbits.com/About/Blog/tabid/78/post/don-t-rejoin-to-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/Default.aspx

Dan, thank you for the great and valuable post.

Dan's Post (including original font and background colours). I did say shameless...

Just change your computer password using netdom.exe!

netdom.exe resetpwd /s:<server> /ud:<user> /pd:*

<server> = a domain controller in the joined domain

<user> = DOMAIN\User format with rights to change the computer password
Here are the full steps:
  1. You need to be able to get onto the machine. I normally just log in with the local Administrator account by typing, ".\Administrator" in the logon window. I hope you remember the password. If you’re creative and resourceful you can hack your way in without the password. Another option is to unplug the machine from the network and log in with domain user. You will be able to do disconnected authentication, but in the case of a reset machine, remember that you may have to use an old password. Your domain user’s cached credential has the same problem as the machine’s private secret.
  2. You need to make sure you have netdom.exe. Where you get netdom.exe depends on what version of Windows you’re running. Windows Server 2008 and Windows Server 2008 R2 ship with netdom.exe you just have to enable the Active Directory Domain Services role. On Windows Vista and Windows 7 you can get it from the Remote Server Administration Tools (RSAT). Google can help you get them. For other platforms see this link: http://technet.microsoft.com/en-us/library/ee649281(WS.10).aspx"
  3. Extra steps if the machine is a domain controller. If the broken machine is a domain controller it is a little bit more complicated, but still possible to fix the problem. I haven’t done this for a while, but I think this works:
    1. Turn off the Kerberos Key Distribution Center service. You can do this in the Services MMC snap-in. Set the startup type to Manual. Reboot.
    2. Remove the Kerberos ticket cache. A reboot will do this for you, or you can remove them using KerbTray.exe. You can get that tool here: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17657
    3. Post change steps. Do these in conjunction with 5 below. Turn the Kerberos Key Distribution Center Service back on before rebooting. You should reboot the domain controller and then force replication in the Active Directory Sites and Services MMC snap-in.
  4. Run netdom.exe to change the password.
    1. Open an administrative command prompt. On Windows platforms with UAC enabled, you will need to right-click on cmd.exe and select "run as Administrator".
    2. Type the following command: netdom.exe resetpwd /s:<server> /ud:<user> /pd:*
  5. Reboot the machine.
Here is more information on netdom.exe: http://support.microsoft.com/kb/325850

References:
http://implbits.com/About/Blog/tabid/78/post/don-t-rejoin-to-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/Default.aspx
I learnt of Dan's post at http://community.spiceworks.com/topic/285129-my-virtual-nightmare-or-it-would-have-been-if-i-slept?utm_campaign=spotlight&utm_medium=email&utm_source=swemail

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in AD, domain, netdom, trust relationship | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Connecting Windows 8 to SBS 2008/2011 RWW
    If you are using Windows 8 and cannot connect to computers via  to SBS 2008 or 2011 Remote Web Workplace, the following may help. It is lik...
  • SharePoint Updates Cause Site to Fail
    Config Wizard Access Denied http://blogs.catapultsystems.com/mpoole/archive/2011/02/12/sharepoint-2007-config-wizard-access-denied.aspx Cann...
  • Symantec Endpoint Protection Manager 11 - Unable to Communicate with Reporting Component
    If you are on a 32-bit OS, skip the next step. If you are on a 64-bit OS, first go to 32-bit ODBC Control Panel. To do this do the following...
  • Symantec Endpoint Protection Has Detected Pending Changes
    When installing Symantec Endpoint Protection, sometimes you will see an error message that "Symantec Endpoint Protection has detected t...
  • Reset Offline Files Cache in Windows 7
    To reset the offline files cache in Windows 7 Create a registry file called resetcache.reg file with the following contents: Windows Registr...
  • Find the Desktop
    It can be REALLY hard to access the desktop using scripts, especially batch scripts, if it has been moved from the default location of C:\Us...
  • Connecting to Windows Internal Database MICROSOFT##SSEE
    This is often useful when administering Sharepoint services on a Windows SBS 2008 system: http://www.networkinghowtos.com/howto/connecting-w...
  • DirectAccess Routing Considerations
    Default gateway should be configured on the server's external interface. So static routes will need to be configured on the internal int...
  • Configure Windows 7 Libraries via Group Policy
    A great article on this here: http://kevinjmorse.ca/articles/configuring-windows-7-libraries-using-group-policy-preferences Thanks guys!
  • Enable Legacy Boot Mode on Windows 8 Pre-Installed Device
    Apparently Microsoft requires OEM suppliers of Windows 8 systems to set the BIOS (actually UFEI now) to Secure Boot by default. This and ano...

Categories

  • access
  • acl
  • active directory
  • Active Directory Federation Services
  • AD
  • add mailbox
  • ADFS
  • ADFS 2.0
  • antivirus
  • Apple
  • automatic configuration
  • BIOS
  • black and white
  • black screen
  • browser
  • bulk import
  • bulk user import
  • cache
  • check
  • Cisco
  • click to run
  • click-to-run
  • clipboard
  • colour
  • command line
  • Compatibility Support Module
  • computer
  • configuration wizard
  • control panel
  • copy
  • CSM
  • data migration
  • database
  • delete
  • desktop
  • detect
  • DirectAccess
  • domain
  • dsquery
  • duplex
  • edition
  • email address
  • embedded database
  • endpoint protection
  • endpoint protection manager
  • error
  • exchange
  • exchange 2003
  • exchange 2007
  • exchange 2010
  • file
  • firewall
  • folder redirection
  • force
  • GASFO
  • Google Apps
  • Google Apps Sync for Outlook
  • GPO
  • group policy
  • inline editor
  • installation
  • IPv6
  • Java
  • java update
  • join domain
  • ldf
  • Legacy Boot
  • libraries
  • library
  • log file
  • Lync
  • Lync Server
  • Lync Server 2010
  • Lync Server 2013
  • Mac
  • mail relay
  • mailbox
  • mailbox creation
  • mailbox setup
  • mailbox statistics
  • Microsoft
  • microsoft##SSEE
  • minimised
  • minimized
  • multicast
  • netdom
  • network
  • Network and Sharing Centre
  • new mailbox
  • new window
  • NIC
  • Office 2013
  • Office 365
  • offline files
  • old computer accounts
  • old computers
  • old user accounts
  • Outlook
  • Outlook 2013
  • pac
  • paste
  • pop-out
  • powershell
  • prerequisites
  • print
  • Print Defaults
  • Print Preferences
  • print server
  • print settings
  • printer
  • Private Network
  • proxy
  • Public Network
  • rdp
  • re-appearing
  • reappearing
  • recover
  • recovery
  • registry
  • remote
  • remote connection
  • remote management
  • Remote Web Workplace
  • restart
  • restore
  • restrict
  • routing
  • RWW
  • sbs
  • sbs 2008
  • sbs 2011
  • scripts
  • Secure Boot
  • SEP
  • SEPM
  • service
  • sharepoint
  • shrink database
  • simple backup
  • site-to-site
  • slow
  • SQL
  • SQL server
  • support
  • Symantec
  • Symantec Endpoint Protection Manager
  • timeout
  • trust relationship
  • UEFI
  • USB
  • user
  • user data
  • version
  • virtual labs
  • VPN
  • wds
  • Windows 2003 domain
  • Windows 2008 R2
  • Windows 7
  • Windows 8
  • windows deployment services
  • windows internal database
  • windows update
  • WMI
  • WSUS

Blog Archive

  • ►  2013 (35)
    • ►  November (3)
    • ►  October (1)
    • ►  September (3)
    • ►  August (3)
    • ►  July (2)
    • ►  June (3)
    • ►  May (1)
    • ►  April (6)
    • ►  March (1)
    • ►  February (10)
    • ►  January (2)
  • ▼  2012 (15)
    • ▼  December (4)
      • Fix "the trust relationship between this workstati...
      • How to Determine SQL Version and Edition
      • Run Control Panel Applets from Command Line
      • Find A Specific Email Address in Exchange
    • ►  November (3)
    • ►  October (3)
    • ►  September (3)
    • ►  May (2)
Powered by Blogger.

About Me

Unknown
View my complete profile