Trying to export a file that has the computer name and description for all workstations on our company’s AD list.
Import-module ActiveDirectory get-aduser -filter * -Properties ???,description | select ???,description | export-csv "c:\temp\workstations.csv" -NoTypeInformation
That’s the code I have so far, which works great, except that I have no idea what to put in that ??? space to get the computer name. I’ve tried everything I could think of, but nothing has worked. Help?