DNS Query Commands

USEFUL DNS COMMAND SET

(Make sure that your PC is added in domain and you are logging in domain account with admin privileges. You need to open command prompt and try the below commands.
"net user userid /do" command will give many basic info in AD


Mail Box Location
dsquery * -filter sAMAccountName="userid" -attr msExchHomeServerName"

Sip ID
dsquery * -filter sAMAccountName="userid" -attr msRTCSIP-PrimaryUserAddress"


Active Sync Status
dsquery * -filter sAMAccountName="userid" -attr msExchMobileMailboxFlags"


Active Sync Policy
dsquery * -filter sAMAccountName="userid" -attr msExchMobileMailboxPolicyLink"


BAND 
dsquery * -filter sAMAccountName="userid" -attr SapCareerGroup"


LYN OUT SIDE ACCESS
dsquery * -filter sAMAccountName="userid" -attr  msRTCSIP-InternetAccessEnabled"


FEDERATION
dsquery * -filter sAMAccountName="userid" -attr msRTCSIP-FederationEnabled


OFFICE 365 SMTP
dsquery * -filter sAMAccountName="userid" -attr proxyAddresses"


DATE OF ID CREATION
dsquery * -filter sAMAccountName="userid" -attr whenCreated"


DATE OF JOINING
dsquery * -filter sAMAccountName="userid" -attr doj