in reply to Cannot execute external process
Doing a quick Google search on dsquery.exe turns up:C:\Users\bear>c:\WINDOWS\system32\dsquery.exe 'c:\WINDOWS\system32\dsquery.exe' is not recognized as an internal or +external command, operable program or batch file. C:\Users\bear>
Applies To: Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012
Finds users in the directory who match the search criteria that you specify. If the predefined search criteria in this command are insufficient, use the more general version of the query command, dsquery *.
Dsquery is a command-line tool that is built into Windows Server 2008. 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.
I Go Back to Sleep, Now.