Solved

Get-mailboxdatabase powershell error

Posted on 2010-11-18
10
1,417 Views
Last Modified: 2012-06-22
Hello,

trying to get this script to work

get-mailboxdatabase  -Identity "exbackup" -Status| fl | Out-File -encoding "ASCII" -force -file Path "output.txt"

exbackup is the mailbox I need to get dumped to the output txt file but i keep getting the user cannot be found.  Is this the correct command?
0
Comment
Question by:BMI-IT
  • 4
  • 3
  • 3
10 Comments
 
LVL 8

Expert Comment

by:rr1968
Comment Utility
Try this:
get-mailboxdatabase  -Identity "exbackup" -Status| fl | Out-File -encoding "ASCII" -force -filePath "output.txt"

Make sure you are running this on MBX server
0
 

Author Comment

by:BMI-IT
Comment Utility
no dice..

I get this error  (dc1 is our Domain controller) I can enter any mailbox in the comment and I get the same error, the user/mailbox exists on our DC

The operation couldn't be performed because object 'exbackup' couldn't be found on 'DC1.***.COM'.  + CategoryInfo          : NotSpecified: (:) [Get-MailboxDatabase], ManagementObjectNotFoundException  + FullyQualifiedErrorId 8079C37F,Microsoft.Exchange.Management.SystemConfigurationTasks.GetMailboxDatabase
0
 
LVL 27

Expert Comment

by:KenMcF
Comment Utility
I think you will need to use select, you can add whatever other information you need after the select statement

get-mailboxdatabase   -Identity "exbackup" -Status | Select Name, LastIncrementalBackup | out-file c:\ststus.csv
0
 

Author Comment

by:BMI-IT
Comment Utility
Thanks Ken but I get the same Error??  the exchange server is a single box. running 2010 SP1

The operation couldn't be performed because object 'exbackup' couldn't be found on 'DC1.***.COM'.
    + CategoryInfo          : NotSpecified: (:) [Get-MailboxDatabase], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 8079C37F,Microsoft.Exchange.Management.SystemConfigurationTasks.GetMailboxDatabase

This is what i don't understand, the mailbox exists, I can do a get-mailbox commandand it shows what ever
0
 
LVL 27

Expert Comment

by:KenMcF
Comment Utility
Then you are using the wrong syntax for the database

That cmdlet has to take these parms

GUID
Distinguished Name
Server\StorageGroup\Database Name
Server\Database Name
StorgaeGroupName\DataBase Name

To get the correct info

Get-MailboxDatabase | fl *
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 8

Expert Comment

by:rr1968
Comment Utility
there is nothing wrong in the cmdlet, i had sent. I have tested it on my MBX server.
the problem is that you cannot query your DC for some reason
Does the account used has at least Exchange view only admin rights?
0
 
LVL 27

Expert Comment

by:KenMcF
Comment Utility
What information are you trying to get, I just read this again and it sounds like "exbackup" is a mailbox not a database. Is that correct?
0
 

Author Comment

by:BMI-IT
Comment Utility
that's correct ken, exbackup is mailbox, We are using a 3rd party backup app and its failing on the fullback, the developer asked me to run that script to get an output of the actual mailbox.

you saw the same thing as me being the datebase commanbd was used but hey.. I'm not a developer

THE Database this mailbox resides on is called "Mailbox Database 2111038332"
0
 
LVL 27

Accepted Solution

by:
KenMcF earned 25 total points
Comment Utility
I would find out what exactly they are loking for

for the mailbox you can do this

get-mailbox exbackup | fl *
0
 
LVL 8

Assisted Solution

by:rr1968
rr1968 earned 25 total points
Comment Utility
Sorry. i still had a feeling that you are trying to get info about the mailbox database
get-mailbox  -Identity "exbackup" | fl | Out-File -encoding "ASCII" -force -filePath "output.txt
0

Featured Post

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now