我试图使用office参数从dsquery查找用户名,因为我们在office参数中存储了ID。
office
dsquery
任何想法如何获得他们的用户名?
我试过了
dsquery user -office "IDHERE"
但我有一个未知的参数错误。
dsquery没有属性office 。 dsget的确如此。
dsget
这样的事情(未经testing)应该是这样的工作:
dsquery user -limit 0 | dsget user -full -office