Invoke-Command -ComputerName remotecomputername -ScriptBlock {Backup-SPSite -Identity "http://remotecomputername:8080" -Path "C:\Users\username\Documents\SiteBackUp\BackUp8080"} -credential username
The term 'Backup-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the sp elling of the name, or if a path was included, verify that the path is correct and try again. + CategoryInfo : ObjectNotFound: (Backup-SPSite:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)