![]() You can find a few other options like adding to a specific OU via the JoinDomainOrWorkgroup documentation. This option creates an AD computer account. This performs the default behavior when joining a computer manually. $instance | Invoke-CimMethod the FJoinOptions parameter above. $localCredential = Get-AdComputer -Filter *). You can verify a trust relationship on a computer when logged on the computer by running: This tool is installed when you install RSAT or is available directly on a domain controller. Nltest is an old-school command-line tool that will test a trust relationship for a computer. ![]() I hope you know your local administrator password! nltest (Command-Line Tool) Let’s build a script we can run both locally and remotely to determine which computers in the domain have this problem to eradicate the “trust relationship between this workstation and the primary domain has failed” error message for good.įirst of all, since you’re assuming domain authentication isn’t working, you’ll need to know a local user account in the administrators group. Once you know the problem exists, how do you replicate it or at least have a method to determine which computers have the problem? You could try to interactively log into each computer but that’s not scalable and I don’t want to get up from my desk! If any of the above happens, you will see that “the trust relationship between this workstation and the primary domain failed” error message.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |