1st step to import the module active directory


Action Required:  Open Powershell ise,  


Cmdlet required is import-module activedirectory.  Now your ready to use cmdlets relating to AD.


get-adcomputer hostname  This will give you the location of which OU the ADcomputer is member of. 


Finding out an upn (user principal name).

cmdlet you can a wildcard. Cmdlet being for example....     

Get-ADUser -Filter {samaccountname -like "sophie*"}       This will return results for all Sophie's in AD 


To find out complete information on an User cmdlet is  Get-ADUser -Identity virgina.tuck -Properties * | Format-List    (virgina.tuck being the upn for example) 


Get-ADUser -Filter {samaccountname -like "sophie*"}