I've never been good at regex. What I'm trying to do is a "Get-Mailbox" where the UserName property begins with the letters A-H. From there, I can move those mailboxes to a specific database.
Has anyone done this that can share an example? I'm trying to do something like:
Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
Has anyone done this that can share an example? I'm trying to do something like:
Code:
Get-Mailbox -ResultSize Unlimited | ? <regex goes here> | Move-Mailbox -database "myserver\mysg\myA-Hdatabase"
Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.