newaduser- no superior reference has been configured

https://pastebin.com/NW3xq4wD

this is the script im trying to use to add users to my AD. and this is the error i get with every user

New-ADUser : No superior reference has been configured for the directory service. The directory

service is therefore unable to issue referrals to objects outside this forest

At C:UsersAdministratorDesktopadduses.ps1:12 char:5

+ New-ADUser -Name “$Displayname” -DisplayName “$Displayname” -SamA …

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (CN=Cell Leaders ,OU=Production:String) [New-ADUser]

, ADException

+ FullyQualifiedErrorId : ActiveDirectoryServer:8406,Microsoft.ActiveDirectory.Management.Com

mands.NewADUser

what am i doing wrong?

submitted by /u/epikphlail
[link] [comments]

Leave a Reply