...">

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.

The only one cannot be installed

Failed to install Active Directory Administrative Center.

This is the error message

+6
source share
2 answers

After installation, you should go to "Programs and Features" (appwiz.cpl) → Turn Windows Features on or off → And enable remote server administration tools.

enter image description here

+8
source

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.

+1
source

Source: https://habr.com/ru/post/903812/


All Articles