tag:blogger.com,1999:blog-15559937.post2081915132558441554..comments2024-02-19T07:53:28.238-05:00Comments on Plain Text Prose: dsmod bug when using the –c option?Marcus Ohhttp://www.blogger.com/profile/16669592705989568859noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-15559937.post-71610175562255564902011-10-26T07:10:58.321-05:002011-10-26T07:10:58.321-05:00sorry about that guys. i think you're absolute...sorry about that guys. i think you're absolutely right. i forgot to add the %a in my example above. i'll get it corrected.Marcus Ohhttps://www.blogger.com/profile/16669592705989568859noreply@blogger.comtag:blogger.com,1999:blog-15559937.post-27395613420926789172011-10-26T02:35:52.896-05:002011-10-26T02:35:52.896-05:00re: comment on 3/23/11 - I had that problem too an...re: comment on 3/23/11 - I had that problem too and found I needed to add the %a to the end of the statement: ... -addmbr %a <br />so that it knows what to "do" against.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15559937.post-34350354693339689202011-03-23T08:24:38.079-05:002011-03-23T08:24:38.079-05:00Is this possible to do with active domain OU user ...Is this possible to do with active domain OU user export? <br />Example:<br />dsquery user ou=Marketing,dc=microsoft,dc=com | dsmod group "cn=Marketing Staff,ou=Marketing,dc=microsoft,dc=com" -addmbr -c<br />(as you stated -c option is no good and if user already exist in given group command just stops)<br /><br />When I add this to your for /f example<br /><br />for /f "delims=" %a in ('dsquery user ou=Marketing,dc=microsoft,dc=com') do dsmod group "cn=Marketing Staff,ou=Marketing,dc=microsoft,dc=com" -addmbr<br /><br />Nothing happens :( -> what am I doing wrong here?<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-15559937.post-19130693248942043482009-01-30T08:24:00.000-05:002009-01-30T08:24:00.000-05:00in the example above, yes. the reason being, anyt...in the example above, yes. the reason being, anytime you have something going through a pipe, a carat is required to indicate to the FOR dos command that you are not trying to pass everything to the left of it into that pipe. this will cause the portion in parenthesis to execute w/ pipe intact. :)Marcus Ohhttps://www.blogger.com/profile/16669592705989568859noreply@blogger.comtag:blogger.com,1999:blog-15559937.post-90517075097274957602009-01-30T05:22:00.000-05:002009-01-30T05:22:00.000-05:00hanks for the article... it helped me a lot!Is tha...hanks for the article... it helped me a lot!<BR/>Is that ^ realy needed before the | character?Anonymousnoreply@blogger.com