powershell issues with export

Welcome Forums General PowerShell Q&A powershell issues with export

Viewing 5 reply threads
  • Author
    Posts
    • #225414
      Participant
      Topics: 6
      Replies: 23
      Points: 35
      Rank: Member
      [/crayon]

       

       

      i am not sure how to get the results to csv file.

       

      here is the screen output

       

      [email protected] is Missing
      User Does exist [email protected]
      User Does exist [email protected]
      User Does exist [email protected]
      User Does exist [email protected]

      I have tried using export-csv and other methods and have failed.

      • This topic was modified 4 months, 2 weeks ago by matthew moore. Reason: code block
      • This topic was modified 4 months, 2 weeks ago by matthew moore. Reason: correct fomatting
      • This topic was modified 4 months, 2 weeks ago by matthew moore. Reason: more context
    • #225426
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      Using Write-Host turns rich and powerfull objects into stupid pixels on the screen. Do not use it until you’re really sure you need it.

      You can pipe $result to Export-Csv.

    • #225438
      Participant
      Topics: 6
      Replies: 23
      Points: 35
      Rank: Member

      thank you olaf. Is there any way to get the words in place of true or false. I have helpdesk people that are going to look for those words . True / False they might not understand even though i do.

      write host was there so i could see the script working. But thanks for the heads up

      • This reply was modified 4 months, 2 weeks ago by matthew moore.
    • #225444
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      Wow …. helpdesk people do not understand true and false? Really? They might look for a better fitting job. 😉 😀

      You can see where the $true or $false is set, right? Just change it to whatever your helpdesk people can understand … maybe a simple “yes” and “no” or “there” and “gone”? 😉

    • #225450
      Participant
      Topics: 6
      Replies: 23
      Points: 35
      Rank: Member

      we call them the helpless desk … thank you so much .

    • #225456
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      we call them the helpless desk … thank you so much .

      lol … that was new for me … I will memorize this and use it when it fits …. thanks 😉 😀

Viewing 5 reply threads
  • The topic ‘powershell issues with export’ is closed to new replies.