David Sankovsky
asked on
Only Get numerical Value
Hi Guys.
I'm writing a small script to get the Message count of a specific Queue.
The result is
How an I modify this line to only return the actual number (without the parameter name and / or any spaces)
I'm writing a small script to get the Message count of a specific Queue.
Get-Queue -Server cas1 -Filter {DeliveryType -eq "SmartHost"} |fl MessageCount
The result is
MessageCount : 0
How an I modify this line to only return the actual number (without the parameter name and / or any spaces)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both. Worked like a charm.
ASKER
Sorry, forgot to close the question.
Thanks oBdA
Thanks oBdA
Open in new window
oBdA beat me to it. :)