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
3 months, 1 week ago.

  • Author
    Posts
  • #113278

    Participant
    Points: 71
    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: 71
    Rank: Member
    • #113297

      Participant
      Points: 1,091
      Helping Hand
      Rank: Community Hero

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

The topic ‘Help: export SPN (multi valued attribute)’ is closed to new replies.