Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 35736

Automating SharePoint 2010 Administration with PowerShell: Cleaning up Central Admin Backup with PowerShell

$
0
0
How about getting rid of all those Backups that has failed? They are just sitting there doing nothing useful anyway. Here is what my Backup and Restore History page looks like… What this gives me is a bunch of SPHistoryObject that have failed: $xmldata = [xml](Get-Content 'C:\SPBackup\spbrtoc.xml') $xmldata.SPBackupRestoreHistory.SPHistoryObject | Where-Object {$_.SPErrorCount -gt '0'} Now let’s store it in the variable $BadBackups and clean it … $BadBackups | % { $xmldata.SPBackupRestoreHistory...(read more)

Viewing all articles
Browse latest Browse all 35736

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>