This project has moved. For the latest updates, please go here.

Send-SPBackupStatus - String was not recognized as a valid DateTime

Mar 17, 2014 at 11:01 AM
Hi
Thanks for the great tool.
But I have an error running the script.
The backup works and also the cleanup taks but at the end the email notification is not working.

This is the error:

Send-SPBackupStatus : String was not recognized as a valid DateTime.
At D:\Backup\Scripts\Backup-SP-Full.ps1:7 char:8
  • $cat | Send-SPBackupStatus -Recipients "support@mycompany.org"
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (SPMcDonough.BAC.SPBackupCatalog:SPBackupCatalog) [Send-SPBackupStatus], FormatException
    • FullyQualifiedErrorId : SPMcDonough.BAC.SPCmdletSendSPBackupStatus
Runnig on Windows 2012 R2 Std Eng. with SharePoint Foundation 2013 SP1 Eng.

Thanks for your help.

Reto Boehi
Mar 17, 2014 at 11:15 AM
Edited Mar 17, 2014 at 12:30 PM
I found out when I change the date and time format in the control panel from "german (switzerland)" to "english (united states)" it's working!

Thanks for your help

Reto Boehi