Pau Lo
asked on
commands per environment or per element
I am new to exchange/management shell, but for a risk assessment I need to run a few exchange commands. I want to check mailbox DB backups and autoforward settings. I have found for last backup I can run:
$dbs = Get-MailboxDatabase -Status
but if there is more than one mailbox database, do I need to run this command "per database", or will the above list all mailbox databases on the server and their -status?
I cant see anyway to specify a mailbox DB parameter if it needs running multiple times to represent multiple mailboxes.
likewise withautoforward rules, I found I can run:
Get-Mailbox -Filter { ForwardingAddress -like "*" } | Where-Object { $_.ForwardingAddress -like "*" } | Select-Object Name,ForwardingAddress
but again, does the above command enumerate all mailboxes in the environment, or all mailboxes on a given server/given mailbox database, and again if you have mailboxes on numerous servers acorss numbers mailbox databases, would it need running multiple times? and how would you specify a parameter?
$dbs = Get-MailboxDatabase -Status
but if there is more than one mailbox database, do I need to run this command "per database", or will the above list all mailbox databases on the server and their -status?
I cant see anyway to specify a mailbox DB parameter if it needs running multiple times to represent multiple mailboxes.
likewise withautoforward rules, I found I can run:
Get-Mailbox -Filter { ForwardingAddress -like "*" } | Where-Object { $_.ForwardingAddress -like "*" } | Select-Object Name,ForwardingAddress
but again, does the above command enumerate all mailboxes in the environment, or all mailboxes on a given server/given mailbox database, and again if you have mailboxes on numerous servers acorss numbers mailbox databases, would it need running multiple times? and how would you specify a parameter?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It can be - it depends on the command.
Simon.
Simon.
ASKER
so basically the answer to the above is its one command per environment..?