[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Exchange Powershell script Get-TransportServer | Get-Queue where not edge

Posted on 2011-05-08
4
Medium Priority
?
3,238 Views
Last Modified: 2012-08-13
Hi,

I am trying to use;
Get-TransportServer | Get-Queue
but I want it to exchluse edge transport servers

Get-TransportServer | Get-Queue where transpport server not an Get-EdgeSubscription name?

Can someone tell me theo powershell where statement that woudl return without the edge transport servers?

Peter
0
Comment
Question by:PeterSinger
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
Thorrsson earned 1500 total points
ID: 35716985
Try
"where $role -ne "IsEdgeServer"
0
 
LVL 4

Author Comment

by:PeterSinger
ID: 35717049
That does not work.

Get-TransportServer | Get-Queue where $role -ne "IsEdgeServer"
0
 
LVL 4

Author Comment

by:PeterSinger
ID: 35717118
This works;
Get-ExchangeServer | where {$_.ServerRole -eq "HubTransport"} |Get-Queue
0
 
LVL 4

Author Closing Comment

by:PeterSinger
ID: 35717128
Led to the solution
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question