ds command line tool question

JordusJordus Banned Posts: 336
Im trying to find users with a particular Office attribute (not the application, but one of the account attributes in AD) and then pipe that to be able to add them to a group.

In basic english

Find users with office with XYZ and put them into group XYZGROUP

I can do

dsquery user | dsget user -office

but that only tells me EVERY single office in the whole directory, and i obviously cant pipe that into a group.

I cant seem to make it go the other way, any ideas?

Comments

Sign In or Register to comment.