Get-Mailboxes
how do get the list of mailboxes for a particular domain in a multi-domain hosted exchange.
e.g. give me the list of all users under abc.com
August 30th, 2010 8:08pm
All user who's primary address is @abc.com, or all users who have any address @abc.com?[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2010 8:19pm
what is this????????
August 30th, 2010 9:26pm
If you mean that mess after the question, that's my tag line.
Copy and past that into a PowerShell console prompt and hit Enter to decode.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2010 9:44pm
it's not the primary address, it an hosted email account account address.
e.g.
admin@abc.com
admin@xyz.com
admin@123.com
admin@newyork.com
so i need the list of all email accounts which has @newyork.com
August 30th, 2010 10:46pm
Okay. Try this:
Get-mailbox -resultsize unlimited |? {[string]$_.emailaddresses -like
*@abc.com*}[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2010 10:53pm
doens't work. output with errors
August 30th, 2010 11:23pm
Can you share the errors?[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2010 11:40pm
On Mon, 30 Aug 2010 20:40:30 +0000, mjolinor wrote:
>Can you share the errors?
You've omitted the quotes around the expression to the right of
"-like".
This works:
Get-mailbox -resultsize unlimited |? {[string]$_.emailaddresses -like
"*@abc.com*"}
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
August 31st, 2010 3:25am
I'm just not having a good day......[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2010 3:35am
On Tue, 31 Aug 2010 00:35:00 +0000, mjolinor wrote:
>I'm just not having a good day......
Don't beat yourself up over it. :-)
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
August 31st, 2010 6:10am
Hi Vministrator,
Please try below PS command:
[PS] C:\>Get-Mailbox –resultsize unlimited
| Where-Object {$_.emailaddresses
-like "*@newyork.com"}
If you have any other question, please feel free let me know, I am glad to have a further discussion with you.
Best regards,
Yang
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2010 4:42am
You Rock Yang :)
September 1st, 2010 2:47pm