[英]Using active directory from command prompt - dsquery user - how to get everyone except x?
Using the example from http://technet.microsoft.com/en-us/library/cc755655(v=ws.10).aspx#BKMK_7 使用http://technet.microsoft.com/zh-cn/library/cc755655(v=ws.10).aspx#BKMK_7中的示例
dsquery user OU=Test,DC=Microsoft,DC=Com -name jon
What i want is everyone but jon. 我想要的只是乔恩。 The following did not work:
以下无效:
dsquery user OU=Test,DC=Microsoft,DC=Com -name !jon
Is it possible from cmd? 有可能从cmd吗?
I solved the issue by adding a for loop with an if statement. 我通过使用if语句添加for循环解决了该问题。 Not an answer as such but it works.
并不是这样的答案,但是可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.