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

 
Moderator
6 months, 3 weeks ago.

  • Author
    Posts
  • #113278

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

      Moderator
      Topics: 8
      Replies: 736
      Points: 2,059
      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.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort