Dsmod -addmbr failure when piping from Dsquery - TechRepublic
Question
August 6, 2008 at 08:20 AM
mhashemi

Dsmod -addmbr failure when piping from Dsquery

by mhashemi . Updated 17 years, 11 months ago

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?

This discussion is locked

All Comments