Exchange: pipeline to Get-Queue not working remotely

Welcome Forums General PowerShell Q&A Exchange: pipeline to Get-Queue not working remotely

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

 
Participant
2 years, 10 months ago.

  • Author
    Posts
  • #33198

    Participant
    Points: 0
    Rank: Member

    I have this one-liner:
    Get-TransportService | Get-Queue

    If I run it locally on an Exchange Server Shell I get the expected results.
    But when I run it remotely (Exchange PSSession to the same server), the result is empty. I have no problem running them independently. I've tried from my Win10 with PS5 and a server with PS4.

    Any thoughts?

  • #33210

    Participant
    Points: 0
    Rank: Member

    Try this one, it works for me in my environment.

    Get-TransportService | % {$_.name} | Get-Queue

The topic ‘Exchange: pipeline to Get-Queue not working remotely’ is closed to new replies.