From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Getting database usage

Getting database usage

- So before you can get the DatabaseSizes and exchange using PowerShell, you need to be either connected to exchange with an exchange PowerShell session or using the exchange management Shell. And you can see here that I've just got an, a session open since running in the ISE. So first, to get MailboxDatabase sizes, we've got to Get-MailboxDatabase command, that gets us a lot of useful information. And to run it by itself at first glance, doesn't really give us a size. But if we type in Format Table and specify the *Size, so getting all of the properties that end in Size, you'll notice that we've got a couple of options here, but specifically that it one is called DatabaseSize but it's empty. Well we're past the status parameter two at here, line 23. And then you can see the actual database sizes. So I've got one that's a little over four gigs, and another one that's almost four gigs. So not very big databases, but pretty big for my demo environment because on line 27, this command…

Contents