The syntax is: “dsquery user “OU=ouName,DC=companyName,DC=Com” | dsmod group “CN=groupName,OU=ouNmae,DC=companyName,DC=Com” -addmbr”
The error is: “dsmod failed:CN=groupName,OU=ouName,DC=companyName,DC=Com
:The parameter is incorrect.
type dsmod /? for help.”
If I run the dsquery portion, it returns a list of DN’s. If I take one of those DN’s and stick it to the end of the dsmod portion, that user is added successfully. I just can’t pipe the two together. Thoughts?