Right-click an empty space on your desktop
From the pop-up menu select New → Shortcut
The Create Shortcut dialog will open. In the 'Type the location of the item' field, enter
%windir%\system32\rundll32.exe dsquery,OpenQueryWindow
and click 'Next'
Give the short cut a more meaningful name than rundll32.exe e.g. 'AD Query'
Click Finish
Double click the newly-created shortcut to see the Find Users, Contacts, and Groups query tool
From a command prompt, try:
gpresult /r