Cannot execute Get-MailboxDatabase cmdlet
Hello, for developing reasons I use the Exchange 2010 Virtual Machine that is provided by Microsoft. I have the problem that I cannot execute the Get-MailboxDatabase or the Add-ADPermission cmdlets. The error returned is the following: The term 'Get-MailboxDatabase' is not recognized as the name of a cmdlet, function, script file, or operable programm. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line: 1 char:20 + Get-MailboxDatabase <<<< + CategroyInfo : ObjectNotFound: (get-MailboxDatabase:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Okay, this means the cmdlet could not be found. But if I try the Get-Mailbox cmdlet I get the list of Mailboxes, which is actually only containing the one of Bob Kelly. In return, there should be far more mailboxes. I'm not that familiar with Exchange administration but how can I tell the Exchange Management Shell where it can find the mentioned cmdlets? And why is there only one mailbox showing off? I was logged on as Administrator while executing the cmdlets. What I want to do is to set the Impersonation rights which in Exchange 2007 worked (only?) by the shell. Do I have in 2010 another possibility? Thanks for any help. Sorry if I forget any details, I will, of course, provide any missing information if requested.
June 23rd, 2010 12:32pm

Hi , I was also getting this error after demoting one of my older dc's. I demoted a windows 2003 DC an still have windows 2008 DC's (and GC). but when I modified the recipient scope in emc from "ou" to an explicit "GC" it solves the error messages. I hope this will help you. Regards. Shafaquat Ali. M.C.I.T.P Exchange 2007 M.C.I.T.P Windows Server 2008 M.C.T.S OCS Server 2007 R2
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2010 12:59pm

What rights does your account have that you are running the shell under? Are you a domain admin? Member of Organsizational Management group for Exchange? In Exch 2010, you only have access to the cmdlets that your account will have (RBAC).Tim Harrington - Catapult Systems - http://HowDoUC.blogspot.com
June 23rd, 2010 2:15pm

Hi Tim, I use the built-in Administrator account, which is member of following groups: AD RMS Enterprise Admins, AD RMS Service Group, Administrators, All Users, _Domain Admins_, Domain Users, Enterprise Admins, Exchange Organization Admins, Exchange Public Folder Admins, Exchange Recipient Admins, Exchange Self-Service Users, Group Policy Creator Owners, Organization Management, Schema Admins, Voicemail Users. Are these groups already the rights? Or must the rights be assigned to the groups? So instead of telling me I don't have the right to execute a cmdlet, the shell will tell me that it could not find the requested cmdlet? Thanks for your replies.
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2010 2:54pm

Hi , Have you tried the earlier post or not ? Regards. Shafaquat Ali.M.C.I.T.P Exchange 2007 M.C.I.T.P Windows Server 2008 M.C.T.S OCS Server 2007 R2
June 23rd, 2010 3:06pm

Hi Shafaquat Ali, thanks for your reply. I tried your post with the explicitly set scope but there is still the error message. Also get-help get-mailboxdatabase brought the error "Cannot find help for topic get-Mailboxdatabase". Regards.
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2010 3:57pm

The Organization Management group should give you access to most of the cmdlets (including the one you are trying to run). Can you try the cmdlet under a different user account that is a member of Organization Management group (and not a member of all the other groups that you are, just making sure one of the other groups is not interferring)?Tim Harrington - Catapult Systems - http://HowDoUC.blogspot.com
June 23rd, 2010 4:04pm

I'm afraid I misconfigured something. I get now HTTP 500 for Services like OWA or EWS. Also the EMC cannot connect to the server.
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2010 4:33pm

Can you verify that all the services are running? So you can't get to OWA? Any errors in the event log since this started?Tim Harrington - Catapult Systems - http://HowDoUC.blogspot.com
June 24th, 2010 3:00am

Hi Alex Please refer to below to deploy the exchange 2010, and then check the exchange server healthy through exbpa. http://technet.microsoft.com/en-us/library/dd351084.aspx Regards! gavin
Free Windows Admin Tool Kit Click here and download it now
June 25th, 2010 5:46am

Thanks for all your help. Finally I got everything right. OWA works fine. And the reason I could not execute the cmdlet was one missing command: "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010". Again: Thanks for your help. Regards.
June 25th, 2010 10:45am

Thanks for all your help. Finally I got everything right. OWA works fine. And the reason I could not execute the cmdlet was one missing command: "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010". Again: Thanks for your help. Regards. When you work in Exchange Management Shell, this snapin is already added, you must be working on Windows Powershell console, where we need to run Add-PSSnapin command before executing any exchange powershell command. Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
June 25th, 2010 12:48pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics