Public/Get-MSPBackupProfile.ps1
Function Get-MSPBackupProfile { <# .SYNOPSIS Get the profile information for the MSP Backup .DESCRIPTION Get the profile information for the MSP Backup .EXAMPLE Get-MSPBackupProfile ProfileId ProfileName ProfileVersion --------- ----------- -------------- 15945 Cloud Server 26 .LINK about_Functions_Advanced .LINK about_CommonParameters #> [CmdletBinding()] Param() Begin { $xml = New-Object XML $xml.load($Script:StatusReport) $ProfileId = $xml.Statistics.ProfileId $ProfileName = $xml.Statistics.ProfileName $ProfileVersion = $xml.Statistics.ProfileVersion } Process { $ProfileInfo = @{ ProfileId = $ProfileId ProfileVersion = $ProfileVersion ProfileName = $ProfileName } $Result = New-Object psobject -Property $ProfileInfo } End { Write-Output $Result } } |