Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Unable to create multiple groups via dsadd command

$
0
0

Hi,

I am trying to create multiple groups via dsadd command, below is the command that m using:

for /f %i in (group1.txt) do dsadd group %i

Details of new group in group1.txt :

cn=LATITUDE ALL COUNTRIES,OU=Groups,OU=Miami,OU=America,DC=ad,DC=forest,DC=com
cn=LATITUDE AUSTRIA,OU=Groups,OU=Miami,OU=America,DC=ad,DC=forest,DC=com
cn=LATITUDE BELGIUM,OU=Groups,OU=Miami,OU=America,DC=ad,DC=forest,DC=com
cn=LATITUDE DENMARK,OU=Groups,OU=Miami,OU=America,DC=ad,DC=forest,DC=com

I am not specifying any scope or security/DL type as by default it creates a security group with global scope. If I use this command for creating single group it works..but if I use it for multiple groups..its giving me an error message:

dsadd group cn=latitude

dsadd failed:cn=latitude:No superior reference has been configured for the direc
tory service. The directory service is therefore unable to issue referrals to ob
jects outside this forest.

It is not taking the complete group name from txt file. Its not able to pick up the second word after latitude. Can somebody suggest me whats I am doing wrong.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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