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 already installed Windows Remote Server Administration Tools for Windows 7 with Service Pack 1. But it is still not working for me.
Please help.
The Active Directory Administrative Center failed to be installed.
It is available if you have the Active Directory Domain Services (AD DS) server role installed. To use dsquery, you must run the dsquery command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.
The dsquery. dll is on most, if not all, Windows systems in C:\Windows\System32\dsquery. dll by default. The binary dsquery.exe may already be present on some servers at C:\Windows\System32\dsquery.exe .
The Dsquery user command is used to find the users in the active directory that matches the specified search criteria. dsquery user command retrieves user information from the active directory. The result can be piped as input to the other directory service command-line tools like dsget, Dsmod, Dsmove, or Dsrm.
After installing, you have to go to Programs And Features (appwiz.cpl ) -> Turn Windows Features On or Off -> And enable the Remote Server Administration tools.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With