Create the new adsisearcher object:
$searcher = [adsisearcher]""
Test searcher:
$searcher.SearchRoot()
Set a filter:
$searcher.Filter = "givenname=*pippo"
Query all results:
$searcher.FindAll()
Query first result:
$result = $searcher.FindOne()
Once you have a result you can get its properties:
$result.Properties
For example, to get all groups the user is member of:
$result.Properties["MemberOf"]