我试着跑
dsquery group -samid "Development Environment" | dsget group -members -expand > C:\dev.txt我有过这个:
The term 'dsquery' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe
lling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:8
+ dsquery <<<<
+ CategoryInfo : ObjectNotFound: (dsquery:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException我已经用Service 1安装了Windows7的。但对我来说还是没用的。
请帮帮忙。

未能安装Active管理中心。

发布于 2011-12-15 04:57:00
安装后,您必须转到程序和功能(appwiz.cpl ) ->打开或关闭->并启用远程服务器管理工具。

发布于 2013-06-06 16:33:47
这是一篇老文章,但是,在回顾了这篇文章之后,我找到了我出现这个问题的原因。
与权利有关。我也收到了同样的错误。"DSquery :术语'DSquery‘不被识别为cmdlet、函数、脚本文件或可操作程序的名称。“
所以,右击,运行-作为“我的域管理员帐户”,然后导入模块活动目录。
现在起作用了。
希望这对下一个人有帮助。
https://stackoverflow.com/questions/8514599
复制相似问题