Write-Output

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of random commandline random commandline 4 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39225

    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
    Profile photo of random commandline
    random commandline
    Participant
    $psobject | Select-Object property1,property2
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.