cyberfalco
New Member
- Messages
- 2
- Reaction score
- 0
- Points
- 1
Our auditing process needs a file export of the CM Administrators. Using the line below, I can get the info to display in the PS window. But when I try to export it, only the logon name is clearly exported. The rest of the info comes out as System.String[].
Get-CMAdministrativeUser | Select-Object LogonName,RoleNames,CategoryNames,CollectionNames
My attempt to export the info.
Get-CMAdministrativeUser | Select-Object LogonName,RoleNames,CategoryNames,CollectionNames | export-csv -path c:\temp\CMAdmin052023.csv
Get-CMAdministrativeUser | Select-Object LogonName,RoleNames,CategoryNames,CollectionNames
My attempt to export the info.
Get-CMAdministrativeUser | Select-Object LogonName,RoleNames,CategoryNames,CollectionNames | export-csv -path c:\temp\CMAdmin052023.csv