i am trying to run the following script using windows power shell ISE:-
Add-PSSnapin Microsoft.SharePoint.PowerShell
$cat = Get-SPBackupCatalog \\T01\Back
Backup-SPFarm -Directory \\T01\Back -BackupMethod Full -BackupThreads 10 -Force
$cat.Refresh()
$cat | Remove-SPBackupCatalog -RetainCount 1 -Confirm:$false
$cat.Refresh()
$cat | Send-SPBackupStatus -Recipients "********"
but i got the following error:-
Get-SPBackupCatalog : The term 'Get-SPBackupCatalog' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:2 char:8 + $cat = Get-SPBackupCatalog \T01\Back + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-SPBackupCatalog:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
can anyone advice please?