DiagnosticMethods.ps1
# # Citrix IPS diagnostics job support # function Format-DiagsData([string]$Platform, [hashtable]$Parameters, [bool]$Verbose=$False) { $diagsData = Format-JobData -Platform $Platform -Parameters $Parameters -Verbose $Verbose Set-SmbOutputLocation -Parameters $Parameters -JobData $diagsData -Verbose $Verbose $diagsData['ceLogs'] = $Parameters.Contains('CeLogs') -And $Parameters.CeLogs $diagsData['windowsEventLogs'] = $Parameters.Contains('WindowsEventLogs') -And $Parameters.WindowsEventLogs $diagsData['ipsData'] = $Parameters.Contains('IpsData') -And $Parameters.IpsData return $diagsData } |