Write-Output

Welcome Forums General PowerShell Q&A Write-Output

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

 
Participant
3 years, 4 months ago.

  • Author
    Posts
  • #39225

    Participant
    Topics: 2
    Replies: 1
    Points: 0
    Rank: Member

    Hi,

    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

    Participant
    Topics: 4
    Replies: 269
    Points: 115
    Helping Hand
    Rank: Participant
    $psobject | Select-Object property1,property2
    

The topic ‘Write-Output’ is closed to new replies.