i am the funny
 

 I AM THE FUNNY!!!

Here are just some random ldap searches i seem to do all the time...

Import-Module ActiveDirectory

get-adgroup CG-O365-SharePoint-ScienceInformationServices-Owners -properties *

Get-aduser -ldapfilter "(&(ObjectCategory=User)(mail=*tiq*))" -properties * | Format-Table Name,DisplayName,HomeDirectory,StreetAddress,mail -autosize

Get-aduser -ldapfilter "(&(ObjectCategory=User)(streetAddress=*culgoa*)(title=*admin*))" -properties * | Format-Table Name,DisplayName,title,telephoneNumber,HomeDirectory,StreetAddress,mail -autosize

Get-aduser -ldapfilter "(&(ObjectCategory=User)(streetAddress=*moresby*))" -properties * | Format-Table Name,DisplayName,title,telephoneNumber,HomeDirectory,StreetAddress,mail -autosize

Get-aduser -ldapfilter "(&(ObjectCategory=User)(HomeDirectory=*moffatt*))" -properties * | Format-Table Name,DisplayName,title,telephoneNumber,HomeDirectory,StreetAddress,mail -autosize

Get-aduser -ldapfilter "(&(ObjectCategory=User)(extensionattribute3=*moffatt*))" -properties * | Select -Property Name,DisplayName,title,telephoneNumber,HomeDirectory,StreetAddress,mail | Export-csv -Path C:\Temp\longreach_ext3.csv -NoTypeInformation

Get-aduser -ldapfilter "(&(ObjectCategory=User)(Description=*intalock*))" -properties * | Format-Table Name,DisplayName,title,telephoneNumber,HomeDirectory,StreetAddress,mail -autosize

Get-aduser -ldapfilter "(&(ObjectCategory=User)(extensionattribute3=helidon))" -properties * | Format-Table mail -autosize

get-aduser iamusername -properties *