Isaias Perez
asked on
Powershell Request - Grab Attribute for Each Object
I have a CSV File or Text File for 100s of Users in my environment. I would like to develop a script that would take each UPN on that column and give me back the data in the Attribute "Description" of that object which is where we put the users Title. Can anyone help?
$Users = Get-Content C:\users_upn.txt >>>>Give me back the data in the attribute field " Description" for each user. Write that data to a text or csv file.
I have a list of users but want to add their Titles to that spreadsheet and that data is stored in the "Description" attribute field.
$Users = Get-Content C:\users_upn.txt >>>>Give me back the data in the attribute field " Description" for each user. Write that data to a text or csv file.
I have a list of users but want to add their Titles to that spreadsheet and that data is stored in the "Description" attribute field.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not an issue with the script, rather with the input file; any row in the output where SamAccountName and DistinguishedName are empty means that the UserPrincipalName could not be found.
ASKER
Ok thank you
ASKER