This slide deck is part of a presentation on SharePoint PowerShell that was given to the Salem SharePoint Users Group. The slide desk does not make a lot of since without the presentation and scripts that go with it.
6. C lean-up & Delete old Back-ups
# Delete the old backups keeping 7 days worth
#Adding the SharePoint snapin
Add-PSSnapin Microsoft.SharePoint.Powershell
# Location of spbrtoc.xml
$spbrtoc = "pathpathspbrtoc.xml"
# Keep XX days of backups
$days = 7
# Import the Sharepoint backup report xml file
[xml]$sp = gc $spbrtoc
# Find the old backups in spbrtoc.xml
$old = $sp.SPBackupRestoreHistory.SPHistoryObject |
? { $_.SPStartTime -lt ((get-date).adddays(-$days)) }
if ($old -eq $Null) { write-host "No reports of backups older
than $days days found in spbrtoc.xml.`nspbrtoc.xml isn't
changed and no files are removed.`n" ; break}
# Delete the old backups from the Sharepoint backup report
xml file
$old | % { $sp.SPBackupRestoreHistory.RemoveChild($_) }
# Delete the physical folders in which the old backups were
located
$old | % { Remove-Item $_.SPBackupDirectory -Recurse }
# Save the new Sharepoint backup report xml file
$sp.Save($spbrtoc)
Write-host "Backup(s) entries older than $days days are
removed from spbrtoc.xml and harddisc."
9. Invalid Signatures
• Push out the registry entry cited in KB98026. We
only needed ‘AllowUntrustedCertExpirationCheck’ to
solve the problem.
• [HKEY_CURRENT_USERSoftwareMicrosoftOffice15.0
infopathSecurity]
• "AllowUntrustedCertExpirationCheck"=dword:00000001
• Apply the three .MSP files contained in the KB98026
self-extracting .EXE
• Apply the one .MSP file contained in KB981041,
which is a required follow-on hotfix per the above
article.
10. PowerShell v.s. 3rd Party Solutions
Image Credit to Wevilly Cheats at https://binweevilcompany.wordpress.com
Thing to Consider…
• Metadata
• Image Capture
• Signatures
• Move to Record Center
• Automation via Workflow