Windows 7 powershell cannot find dsquery and dsget
I tried to run
dsquery group -samid "Development Environment" | dsget group -members -expand > C:\dev.txt and I had this:
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 I have already installed Remote Windows Server Administration Tools for Windows 7 Service Pack 1 . But it still doesn't work for me.
Please, help.

Failed to install Active Directory Administrative Center.

This is an old post, but looking through this article I could find the reason why I had this problem.
These were right. I got the same error. "DSquery: the term" DSquery "is not recognized as the name of a cmdlet, function, script file, or workable program."
So, right-click, run as "my domain administrator account", then activate the import module.
Now it works.
Hope this helps the next person.
