Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

commands per environment or per element

Posted on 2014-01-14
3
Medium Priority
?
175 Views
Last Modified: 2014-01-15
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?
0
Comment
Question by:pma111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 2000 total points
ID: 39779260
Why don't you just run the commands and see the results?
This is EMS fundamentals.

As long as you are doing just get-... type commands, no changes are being made. Nothing that you have posted makes a modification to the system, so will do no harm.

For example, if you run get-mailbox you will find it lists all of the mailboxes.
Get-mailboxdatabase will list them all.

If you want to restrict to specific database then you would run get-mailboxdatabase -identity <database name> then you put the paramaters you want in.

Simon.
0
 
LVL 3

Author Comment

by:pma111
ID: 39779275
i dont curently have access to exchange/exchange shell so wanted to go prepared for when I have to do my analysis

so basically the answer to the above is its one command per environment..?
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39781542
It can be - it depends on the command.

Simon.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

730 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