Home

Exchange 2010: Mailbox Size

Posted by SteveHardie | On: Jul 04 2013 | Comments (2)
This post demonstrates how you can use Exchange Powershell to list and export user mailbox size, including deleted items size. Run the command below to generate a list of all users, what databse their mailbox is stored in, the TotalItemSize, and TotalDeletedItemSize...

Powershell: Delete Folder if Exists

Posted by SteveHardie | On: Apr 27 2013 | Comments (0)
Powershell script to delete a folder or directory if it exists: $strFolderName="c:\temp\" If (Test-Path $strFolderName){ Remove-Item $strFolderName } See Also: Powershell: Check If File Exists Powershell: Delete File if Exists Test-Path Remove-Item

Powershell: Check If File Exists

Posted by SteveHardie | On: Apr 26 2013 | Comments (5)
Powershell script to check if a file exists $strFileName="c:\filename.txt" If (Test-Path $strFileName){ # // File exists }Else{ # // File does not exist } See Also: Powershell: Delete File if Exists Powershell: Delete Folder if Exists Test-Path Remove-Item

Powershell: Delete File if Exists

Posted by SteveHardie | On: Sep 25 2012 | Comments (5)
Powershell script to delete a file if it already exists: If (Test-Path $strFileName){ Remove-Item $strFileName } See Also: Powershell: Check If File Exists Powershell: Delete Folder if Exists Test-Path Remove-Item

Exchange 2010: Set Work Hours for Room Mailbox

Posted by SteveHardie | On: Aug 16 2012 | Comments (2)
In Exchange 2010, when you create a room or resource mailbox, the Resource Policy tab gives you the option to Allow scheduling only during business hours. But what is business hours? The default business hours is from 8:00 am until 5:00 pm. You can check this by...

Exchange 2010: Remove disconnected mailbox

Posted by SteveHardie | On: Jun 26 2012 | Comments (0)
After you delete a user from Acrive directory or Exchagne their mailbox is kept in the Exchange database for a number of days until it is automatiaccly removed. As defined in the “Limits” section of the database properties. If you want to force the...

Exchange 2010: Register custom functions in console

Posted by SteveHardie | On: Jun 26 2012 | Comments (0)
If you have defined custom functions in a .ps1 file, to register them in Exchange Command Shell all you need to do is run the following command: [ps] c:\Exchange> . .\.ps1 Then you can call your functions from the PowerShell command line.

Exchange 2010: Purge Dumpster

Posted by SteveHardie | On: May 23 2012 | Comments (4)
This article outlines how to force empty the deleted items / recoverable items dumpster in a users mailbox. To view how much space is consumed by all users dumpster files run this command: Get-MailBox | Get-MailboxStatistics | select DisplayName,TotalDeletedItemSize To...

Exchange 2010: The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdlet

Posted by SteveHardie | On: May 23 2012 | Comments (6)
Problem: When using Powershell to run the Search-Mailbox command the following error is generated: Search-Mailbox” Command in Powershell: The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdlet Solution: This error will be generated...

Exchange 2010: View available space in database

Posted by SteveHardie | On: May 22 2012 | Comments (0)
To view how much database white space you have on your databases run the following cmdlet: Get-MailboxDatabase -Status | Sort-Object DatabaseSize -Descending | Format-Table Name, DatabaseSize, AvailableNewMailboxSpace