Hi All, im new to powershell and need to extract out some data.
I would like to extract below attributes from AD for a User. Could you please help me in fixing the script.
Get-QADUser t70869 | select -ObjectAttributes samAccountName, givenName, sn, displayName, description, mail,proxyaddresses,canonicalname, dn,extensionAttribute1,extensionAttribute5,extensionAttribute9,extensionAttribute14, extensionAttribute15 | export-csv C:\Users\t70869\Documents\Temp\test3.csv
SamAccountName
givenname
sn
DisplayName
Description
mail
mailNickname
ProxyAddresses
targetAddress
CanonicalName
DN
extensionAttribute1
extensionAttribute5
extensionAttribute9
extensionAttribute14
extensionAttribute15