This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Script for Quest Powershell in order to pull data from AD

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

Parents
  • You may have to specify the -includedproperties parameter with your Get-QAD user command and listing these so:

    Get-QADUser t70869 -includedproperties extensionAttribute1,extensionAttribute5,extensionAttribute9,extensionAttribute14,extensionAttribute15

    ...and then the rest of the code as written.
Reply
  • You may have to specify the -includedproperties parameter with your Get-QAD user command and listing these so:

    Get-QADUser t70869 -includedproperties extensionAttribute1,extensionAttribute5,extensionAttribute9,extensionAttribute14,extensionAttribute15

    ...and then the rest of the code as written.
Children
No Data