Join Domain Specific Dc Powershell
Are the dc s refusing to give out the site specific info to a pc that is not in the domain.
Join domain specific dc powershell. Thankfully we can automate this with powershell when we join the computers to the domain. Join computer to domain and specify ou path with powershell. However during a domain join or disjoin the process seems to skip all the site location.
As you probably know you don t actually need to explicitly connect to a dc to run the cmdlets. It is best practice to move the computers from the default folder to a different ou. Etc but if this is too difficult to do then i could do with a drop down.
Idealy i would like to use ps to join the domain like you have listed but based on the first 3 letters of the computer name typed in join specific ous for instance if your name name was par1234 join the paris ou if the computer name was aus1234 join the australian ou. Your going to be using powershell. Could it be that because the workstation is technically not a member of the domain it is actually unable to do the site specific calls.
Powershell add computer domainname yourdomainhere ydh credential domain username oupath ou yourou ou yourou dc yourdc dc yourdc you can copy and paste into notepad to modify for you. I haven t tried creating a batch file but it could possibly work. If you need a list of users in your domain you just install the cmdlets and run get qaduser.
Powershell script join a server to a specific ou in active directory posted on february 25 2019 by computer tech blog a powershell script to add a server to a specific ou when joining a domain.