How to use PowerShell to replace user domains

%3CLINGO-SUB%20id%3D%22lingo-sub-2162793%22%20slang%3D%22en-US%22%3EHow%20to%20use%20PowerShell%20to%20replace%20user%20domains%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162793%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20users%20who%20have%202%20domains%26nbsp%3B%40domai1%20and%20%40domain2.%26nbsp%3BCurrently%20when%20a%20user%20logs%20into%20SharePoint%20with%20their%26nbsp%3B%40Domain2%20credentials%2C%20they%20are%20not%20able%20to%20see%20the%20documents%20that%20they%20had%20access%20to%20when%20using%20their%26nbsp%3B%40domain1%20credentials.%20I%20would%20like%20to%20use%20a%20PowerShell%20script%20to%20replace%2Fmerge%20all%26nbsp%3B%40domain1%20users%20with%20the%20%40domain2%20equivalent.%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20ever%20done%20anything%20like%20this%3F%20How%20do%20I%20go%20about%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2162793%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I have users who have 2 domains @domai1 and @domain2. Currently when a user logs into SharePoint with their @Domain2 credentials, they are not able to see the documents that they had access to when using their @domain1 credentials. I would like to use a PowerShell script to replace/merge all @domain1 users with the @domain2 equivalent. 

Has anyone ever done anything like this? How do I go about this?

0 Replies