Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Connect to a different domain controler via PowerShell

$
0
0
Ok so my domain has 4 domain controllers. I'm dong my PS scripting on the exchange server. At the end of my user creation script I'm adding users to groups BUT PS bombs out saying it can't find the user object. If I way or force replication I can add the users the the groups just fine via Add-Adgroupmember. So my question is can I run the script against a primary DC so that the changes are instant?

JF


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>