Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

NEW Info needed for an audit

  • Thread starter Thread starter cyberfalco
  • Start date Start date
  • Replies Replies 0
  • Views Views 603

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
 
Back
Top