我如何使用dsquery查找特定用户(用户分配的组)的所有组?
dsquery user -samid [username] | dsget user -memberof -expand | dsget group -samid
祝你好运!