Solved

Get-mailboxdatabase powershell error

Posted on 2010-11-18
10
1,438 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
[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
  • 4
  • 3
  • 3
10 Comments
 
LVL 8

Expert Comment

by:rr1968
ID: 34167482
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
ID: 34167557
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
ID: 34167572
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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:BMI-IT
ID: 34167630
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
ID: 34167662
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
 
LVL 8

Expert Comment

by:rr1968
ID: 34167674
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
ID: 34167696
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
ID: 34167736
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
ID: 34167748
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
ID: 34167800
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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 …
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

710 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