Welcome Forums General PowerShell Q&A Write-Output

Viewing 1 reply thread
  • Author
    • #39225
      Topics: 2
      Replies: 1
      Points: 0
      Rank: Member


      I wrote a poweshell function (cmdlets-Function) to get mailbox permissions along with permission holders details (their manager, employeetype..title…etc)
      Inside the function im collecting all the information to “PSObject” and at the end i use “Write-Output $psobject” to print the data to console, and it print 10 property of the psobject.

      My question is how can i restrict the property that needs to be printed ? until unless i use fl * .. or select * .. ft *

    • #39229
      Topics: 5
      Replies: 322
      Points: 442
      Helping Hand
      Rank: Contributor
      $psobject | Select-Object property1,property2
Viewing 1 reply thread
  • The topic ‘Write-Output’ is closed to new replies.