Comments on: PowerShell Script: Check Exchange Mailbox Database Last Backup Time https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/ Practical Office 365 News, Tips, and Tutorials Fri, 13 Jan 2017 07:38:14 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Paul Cunningham</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_8761'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_8761"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Paul Cunningham</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8761 Wed, 21 Oct 2015 00:19:11 +0000 https://www.practical365.com/?p=3186#comment-8761 In reply to abhishek.

I recommend you look at this script instead:
https://www.practical365.com/set-automated-exchange-2010-database-backup-alert-email/

If it doesn’t do exactly what you need then it is quite simple to modify it.

]]>
By: abhishek https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8760 Tue, 20 Oct 2015 18:00:25 +0000 https://www.practical365.com/?p=3186#comment-8760 Hello Paul

This is Abhishek from New Delhi/ India. Your Script works great in our envt. Thanks for this wonderful script

I am newbie to Powershell, so don’t know much about it, In the Database Backup Alert Email, can you also advise me where to add the field of Last Incremental Backup, Size of databases, space remaining on the drives and threshold of 1 week alert .

Thanks

Thanks

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Paul Cunningham</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_8759'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_8759"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Paul Cunningham</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8759 Tue, 21 Apr 2015 12:17:00 +0000 https://www.practical365.com/?p=3186#comment-8759 In reply to Hesta.

Mailboxes are hosted in databases. Databases are backed up. This script reports on the backup times for databases.

If you want to know which database a mailbox is located in you can run Get-Mailbox to see that information.

]]>
By: Hesta https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8758 Tue, 21 Apr 2015 12:11:02 +0000 https://www.practical365.com/?p=3186#comment-8758 In reply to Paul Cunningham.

Hi Paul,

I mean how to see the last backup per user mailbox with use this script. it is posibble ?

Thank You

]]>
By: Paul Cunningham https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8757 Tue, 21 Apr 2015 11:08:07 +0000 https://www.practical365.com/?p=3186#comment-8757 In reply to Hesta.

I don’t know what you mean by that. A database is a database.

What do “user mailbox” and “database mailbox” mean to you?

]]>
By: Hesta https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8756 Tue, 21 Apr 2015 10:56:27 +0000 https://www.practical365.com/?p=3186#comment-8756 Hi Paul,

How to check last backup per user mailbox not database mailbox ? could this script can do that ?

Thank you

]]>
By: Powershell Backup Mailbox To Pst | OutlookRecoveryGuide.org https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8755 Tue, 30 Sep 2014 00:34:17 +0000 https://www.practical365.com/?p=3186#comment-8755 […] PowerShell Script: Check Exchange … – Here is a simple script you can use to check the last backup time for the mailbox databases on an Exchange Server. Run the script from the Exchange Management …… […]

]]>
By: Jeff https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8754 Thu, 24 Apr 2014 11:24:47 +0000 https://www.practical365.com/?p=3186#comment-8754 In reply to Robert.

Robert, log on to http://www.microsoftvirtualacademy.com/ and enrol/watch the course ‘Getting Started with PowerShell 3.0 Jump Start’. In that you will learn why double-clicking on a .PS1 file won’t work (and why this is actually a GOOD thing!)

You’ll probably have a bit of a laugh here and there too.

PS – It’s free!

]]>
By: Robert https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8753 Fri, 21 Mar 2014 22:57:35 +0000 https://www.practical365.com/?p=3186#comment-8753 This was helpful for me… I wanted the script to run, on a click, and wait for me to read the results before closing…

Open notepad, paste the code below in…
Save as something nifty like: “Check Exchange Last Backup.PS1”
——————————————————————————————-

add-pssnapin Microsoft.Exchange.Management.PowerShell.SnapIn
$server = $env:computername

$now = [DateTime]::Now

“Server: ” + $server
“Current time: ” + $now

$db = get-MailboxDatabase -server $server -status
foreach ($objItem in $db)
{
$lastfull = $objItem.lastfullbackup
if (!$lastfull)
{
$fullago = “n/a”
}
else
{
$fullago = $now – $lastfull
$fullago = $fullago.TotalHours
$fullago = “{0:N0}” -f $fullago
}

$lastinc = $objItem.lastincrementalbackup
if (!$lastinc)
{
$incago = “n/a”
}
else
{
$incago = $now – $lastinc
$incago = $incago.TotalHours
$incago = “{0:N0}” -f $incago
}

$returnedObj = new-object PSObject
$returnedObj | add-member NoteProperty -name “Database” -value $objItem.Name
$returnedObj | add-member NoteProperty -name “Last Full (hrs ago)” -value $fullago
$returnedObj | Add-Member NoteProperty -name “Last Inc (hrs ago)” -value $incago
$returnedObj
}

Write-Host “Press any key to continue …”

$x = $host.UI.RawUI.ReadKey(“NoEcho,IncludeKeyDown”)

]]>
By: Simon Hawkes https://practical365.com/powershell-script-check-exchange-mailbox-database-backup-time/#comment-8752 Tue, 13 Aug 2013 05:13:59 +0000 https://www.practical365.com/?p=3186#comment-8752 In reply to Paul Cunningham.

Thanks Paul

very funky 🙂

]]>