Help: export SPN (multi valued attribute)

Welcome Forums General PowerShell Q&A Help: export SPN (multi valued attribute)

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 weeks, 1 day ago.

  • Author
    Posts
  • #113278

    Participant
    Points: 0
    Rank: Member

    How do I dump all multi valued attributes to a csv?

    Import-Csv .\Servers.csv | % {Get-ADComputer -Server corp.com -Identity $_.name -properties servicePrincipalName |
        select name,@{Name='servicePrincipalName';Expression={[SPNs]::join(“;”, ($_.servicePrincipalName))}}}

    I need to archive those SPNs

    thanks

  • #113281

    Participant
    Points: 0
    Rank: Member
    • #113297

      Participant
      Points: 20
      Rank: Member

      Does the approach in that serves your purpose ? Or are you expecting any other suggestions/advice ?

You must be logged in to reply to this topic.