Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2994
  • Last Modified:

Get-MailboxStatistics not working with Powershell on Exchange 2007?

I open up Powershell 1.0 on Exchange 2007 and at the prompt I type in Get-MailboxStatistics <username> and it says:

The term 'Get-MailboxStatistics' is not recognized as a cmdlet, function, operable program, or script file. Verify the
term and try again.
At line:1 char:21
+ Get-MailboxStatistics <<<<


What am I doing wrong?
0
BryceRichert
Asked:
BryceRichert
1 Solution
 
QlemoC++ DeveloperCommented:
You need to use the Exchange Admin Console for that. The link should be installed on your desktop. It starts PowerShell with an extension set of cmdlets, which Get-MailboxStatistics is one of it. The complete command is:

powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\bin\Exchange.ps1'"
0
 
BryceRichertAuthor Commented:
got it thanks.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now