I'm trying to lookup a username from dsquery
using the office
parameter as we store IDs inside of the office parameter.
Any ideas on how to get their username?
I tried
dsquery user -office "IDHERE"
but I got an unknown parameter error.
active-directorydsquery
I'm trying to lookup a username from dsquery
using the office
parameter as we store IDs inside of the office parameter.
Any ideas on how to get their username?
I tried
dsquery user -office "IDHERE"
but I got an unknown parameter error.
Best Answer
dsquery
does not have an attributeoffice
.dsget
does.Something like this (untested) should to the job: