Public/Set-MSPBackupScript.ps1
Function Set-MSPBackupScript { [CmdletBinding(SupportsShouldProcess = $true)] [OutputType('System.String')] Param( [Int]$Id, [securestring]$Password, [String]$User, [System.IO.FileInfo]$Path, [bool]$FailSessionOnError, [String]$Name, [Int]$TimeOut ) Begin { Write-Verbose ('{0}:: Function started' -f $MyInvocation.MyCommand) $stdOutTempFile = [System.IO.Path]::GetTempFileName() $stdErrTempFile = [System.IO.Path]::GetTempFileName() } Process { Write-Verbose ('{0}:: Getting status' -f $MyInvocation.MyCommand) $Status = & $Script:CmdPath -machine-readable control.script.modify } End { Write-Verbose ('{0}:: Function ended' -f $MyInvocation.MyCommand) Return $Status } } |