ComplianceDiagnosticeDiscovery.psm1

Import-Module "$PSScriptRoot\ComplianceDiagnosticUtils.psm1"


# Get support template for eDiscovery

#region eDiscovery

function Confirm-eDiscoveryCommandsPresent{
    # Check if Classification Commands are present
    $command = Get-Command Get-ComplianceCase -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    return $true
}

function Initialize-eDiscHoldTab{
    $global:eDiscControlVariables.HoldfileData = $null
    #$global:eDiscControlVariables.ClassificationReproFiles = $null
}

function Initialize-eDiscSearchTab{
    $global:eDiscControlVariables.ComplianceSearchAction = $null

}

function Initialize-eDiscExportTab{
    $global:eDiscControlVariables.ClassificationLAFiddlerFiles = $null
}

function Get-eDiscTabContent($TabObject){
    [Parameter(Mandatory=$true)]
    [Windows.Controls.TabItem] $TabObject

    GetGlobalHoldPolicyRules

    # Collect diagnostic data from user
    $global:eDiscControlVariables.eDiscSupportDataTabContent = New-Object Windows.Controls.StackPanel
    $global:eDiscControlVariables.eDiscSupportDataTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center
    $global:eDiscControlVariables.ediscsupportpaneltemplate = Get-TemplateGrid

    $eDiscoveryPanelGrid = New-Object Windows.Controls.Grid
    $eDiscoveryTopTabControl = Get-TopTabControl
    $eDiscoveryPanelGrid.Children.Add($eDiscoveryTopTabControl.TopTabControl) > $null

    $eDiscDiagscrollViewer = New-Object Windows.Controls.ScrollViewer
    $eDiscDiagscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscDiagscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscDiagscrollViewer.Content =  $global:eDiscControlVariables.ediscsupportpaneltemplate.Grid
    $eDiscoveryTopTabControl.GatherSupportDataTabItem.Content = $eDiscDiagscrollViewer


    $eDiscHoldSupportButton = Get-Button -ButtonName "Hold" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $global:eDiscControlVariables.ediscsupportpaneltemplate.Column1.Children.Add($eDiscHoldSupportButton) > $null

    $eDiscSearchSupportButton = Get-Button -ButtonName "Search" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $global:eDiscControlVariables.ediscsupportpaneltemplate.Column1.Children.Add($eDiscSearchSupportButton) > $null

    $eDiscExportSupportButton = Get-Button -ButtonName "Export" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $global:eDiscControlVariables.ediscsupportpaneltemplate.Column1.Children.Add($eDiscExportSupportButton) > $null

    $eDiscHoldSupportButton.Add_Click({    
        Initialize-eDiscHoldTab
        Get-eDiscHoldSupportTemplate
    })

    $eDiscSearchSupportButton.Add_Click({
        Initialize-eDiscSearchTab
        Get-eDiscSearchTemplate
    })

    $eDiscExportSupportButton.Add_Click({
        Initialize-eDiscExportTab
        Get-eDiscExportSupportTemplate
    })

    $global:eDiscControlVariables.ediscsupportpaneltemplate.Column2.Children.Add($global:eDiscControlVariables.eDiscSupportDataTabContent ) > $null

    $TabObject.Content = $eDiscoveryPanelGrid

}

function Get-eDiscHoldSupportTemplate(){
    $redColor = [System.Windows.Media.Color]::FromRgb(200, 10, 10)
    $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206)
    $supportDataHeader = Show-Text -Text "eDiscovery Hold Support Data collection" -Color $blueColor -fontSize 20
    
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Clear()
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($supportDataHeader) > $null
    
    $tableGrid = Get-Table -coumns 4 -rows 6

    ### Fields for Hold

    $sharepointLocationLabel = Show-Text -Text "Enter Sharepoint Location (If involved)" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $sharepointLocationLabel

    $Global:eDiscControlVariables.SharepointLocationTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 3 -Control $Global:eDiscControlVariables.SharepointLocationTextBox

    $exchangeLocationLabel = Show-Text -Text "Enter Exchange Location (If involved)" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $exchangeLocationLabel

    $Global:eDiscControlVariables.exchangeLocationLabelTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 3 -Control $Global:eDiscControlVariables.exchangeLocationLabelTextBox


    $holdPolicyLabel = Show-Text -Text "Enter Hold Policy Name" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $holdPolicyLabel

    # GetglobalHoldPolicyRules

    $Global:eDiscControlVariables.HoldPolicyTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $Global:eDiscControlVariables.HoldPolicyTextBox


    $holdPolicyRulesLabel = Show-Text -Text "Enter Hold Policy Rule Name" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $holdPolicyRulesLabel

    $global:eDiscControlVariables.HoldPolicyRulesTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 3 -Control $Global:eDiscControlVariables.HoldPolicyRulesTextBox
    
   # $global:eDiscControlVariables.HoldPolicyRulesComboBox = Get-ComboBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
   # $global:eDiscControlVariables.HoldPolicyRulesComboBox.ItemsSource = $global:eDiscControlVariables.HoldPolicyRules
   # add-controltotableat -TableObj $tableGrid -row 1 -column 3 -Control $global:eDiscControlVariables.HoldPolicyRulesComboBox

    $networkTraceAttachLabel = Show-Text -Text "Attach Screenshot/ PSR/ Fiddler Trace" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $networkTraceAttachLabel

    $eDiscoHoldDisclaimer = Show-Text -Text "*Exporting data would run Get-CaseHoldPolicy and Get-CaseHoldRule internally" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" -Color $redColor
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($eDiscoHoldDisclaimer)> $null

    $networkTraceAttachButton = Get-filebutton `
        -GlobalScopeName "eDiscControlVariables" `
        -GlobalvariableName "HoldFileLabel" `
        -GlobalFileListName "HoldfileData" `
        -buttonName "Browse Supporting Files"`
        -Margin "300,0,10,0"`
        -horizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 3 -Control $networkTraceAttachButton

    $global:eDiscControlVariables.HoldFileLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    $eDiscoveryScrollViewer = New-Object Windows.Controls.ScrollViewer
    $eDiscoveryScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer.Content = $global:eDiscControlVariables.HoldFileLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 3 -Control $eDiscoveryScrollViewer

    $tablegrid.margin = new-object system.windows.thickness(10,30,10,10)
    $tablegrid.HorizontalAlignment = [Windows.HorizontalAlignment]::Center

    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($tableGrid) > $null

    $eDiscoveryHoldExportButton = Get-Button -ButtonName "Export eDiscovery Hold" -Margin '300,0,10,0' -width 200 -HorizontalAlignment "Left"
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($eDiscoveryHoldExportButton) > $null

    $eDiscoveryHoldExportButton.Add_Click({

        $Folder =Get-ExportFolder("ExportedeDiscoveryHoldData")
        if(!$Folder){
            return
        }
        $filepath = $Folder + "\" + "eDiscoveryHoldSupportData.Json"

        $supportData = @{}
        if($global:eDiscControlVariables.SharepointLocationTextBox.Text -ne "") {
            $supportData["SharepointLocation"] = $Global:eDiscControlVariables.SharepointLocationTextBox.Text
        }
        if($global:eDiscControlVariables.exchangeLocationLabelTextBox.Text -ne "") {
            $supportData["ExchangeLocation"] = $Global:eDiscControlVariables.exchangeLocationLabelTextBox.Text
        }

        $supportData["ImpactedHoldPolicy"] = $Global:eDiscControlVariables.HoldPolicyTextBox.Text
        $supportData["ImpactedHoldPolicyRule"] = $global:eDiscControlVariables.HoldPolicyRulesTextBox.Text

        if($Global:eDiscControlVariables.HoldPolicyTextBox.Text -eq "") {
            [System.Windows.MessageBox]::Show("Please enter Hold Policy Name", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
            return
        }
        elseif ($Global:eDiscControlVariables.HoldPolicyRulesTextBox.Text -eq "") {
            [System.Windows.MessageBox]::Show("Please enter Hold Policy Rule", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
            return
        } else
        {
            # Get the result of Get-CaseHoldPolicy
            $caseHoldPolicy = Get-CaseHoldPolicy -Identity $Global:eDiscControlVariables.HoldPolicyTextBox.Text | Format-List
            
            # Check if the result is not null
            if ($caseHoldPolicy) {
                # If the result is not null, assign it to $supportData["ImpactedPolicyDetails"]
                $supportData["ImpactedPolicyDetails"] = $caseHoldPolicy 
            }
            else {
                # If the result is null, assign the error message to $supportData["ImpactedPolicyDetails"]
                $supportData["ImpactedPolicyDetails"] = "No data found for the Hold Policy Name entered"
            }

            # Get the result of Get-CaseHoldRule
            $caseHoldRule = Get-CaseHoldRule -Identity $Global:eDiscControlVariables.HoldPolicyRulesTextBox.Text | Format-List

            # Check if the result is not null
            if ($caseHoldRule) {
                # If the result is not null, assign it to $supportData["ImpactedPolicyRuleDetails"]
                $supportData["ImpactedPolicyRuleDetails"] = $caseHoldRule 
            }
            else {
                # If the result is null, assign the error message to $supportData["ImpactedPolicyRuleDetails"]
                $supportData["ImpactedPolicyRuleDetails"] = "No data found for the Hold Policy Rule entered"
            }

        }


        try{
            $supportData["AttachedFiles"] = Get-FileName($global:eDiscControlVariables.HoldfileData)
            foreach($file in $global:eDiscControlVariables.HoldfileData){
                Copy-Item $file -Destination $Folder -force
            }

            CleanAndShowFolder -folder $Folder -supportData $supportData -filepath $filepath
        }
        catch{
            [System.Windows.MessageBox]::Show("Failed to create zip file. Error message: $_", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
        }


      # $global:eDiscControlVariables.ClassificationHoldFiles = $global:eDiscControlVariables.HoldFileLabel.Text
      # Export-Data -Data $global:eDiscControlVariables.ClassificationHoldFiles -FileName "eDiscoveryHoldSupportData"
    })

}

function Get-eDiscSearchTemplate(){

    $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206)
    $supportDataHeader = Show-Text -Text "eDiscovery Search Support Data collection" -Color $blueColor -fontSize 20

    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Clear()
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($supportDataHeader) > $null
    
    $tableGrid = Get-Table -coumns 4 -rows 9

    $standardsearchLabel = Show-Text -Text "Standard Search Data Collection" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -Color $blueColor
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $standardsearchLabel

    $ComplianceSearchLabel = Show-Text -Text "Search Name" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $ComplianceSearchLabel

    $global:eDiscControlVariables.ComplianceSearchTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 3 -Control $global:eDiscControlVariables.ComplianceSearchTextBox

    $ComplianceSearchActionLabel = Show-Text -Text "Search Action" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $ComplianceSearchActionLabel

    $global:eDiscControlVariables.ComplianceSearchActionTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $global:eDiscControlVariables.ComplianceSearchActionTextBox

    $GetComplianceCaseLabel = Show-Text -Text "Compliance Case Name" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $GetComplianceCaseLabel

    $global:eDiscControlVariables.GetComplianceCaseTextBox = Get-TextBox -width 400 -margin "300,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 3 -Control $global:eDiscControlVariables.GetComplianceCaseTextBox

    $PremiumSearchLabel = Show-Text -Text "Premium Search Data Collection" -IsBold $false -margin "0,30,0,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -Color $blueColor 
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $PremiumSearchLabel

    $premiumsearchinfocollectLabel = Show-Text -Text "Collect the info by following instruction (https://aka.ms/eDiscPremium)" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 2 -Control $premiumsearchinfocollectLabel

    $premiumattachbutton = Get-filebutton `
        -GlobalScopeName "eDiscControlVariables" `
        -GlobalvariableName "PremiumAttachFileLabel" `
        -GlobalFileListName "HoldFileData" `
        -buttonName "Attach case / Job information"`
        -Margin "450,0,0,0"`
        -horizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 3 -Control $premiumattachbutton

    $global:eDiscControlVariables.PremiumAttachFileLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "450,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    $eDiscoveryScrollViewer = New-Object Windows.Controls.ScrollViewer
    $eDiscoveryScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer.Content = $global:eDiscControlVariables.PremiumAttachFileLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 8 -column 3 -Control $eDiscoveryScrollViewer

    $tablegrid.margin = new-object system.windows.thickness(10,30,10,10)
    $tablegrid.HorizontalAlignment = [Windows.HorizontalAlignment]::Center

    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($tableGrid) > $null

    $eDiscoverySearchExportButton = Get-Button -ButtonName "Export eDiscovery Search info" -Margin '300,00,10,10' -width 210 -HorizontalAlignment "Left"
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($eDiscoverySearchExportButton) > $null

    $eDiscoverySearchExportButton.Add_Click({
        $Folder =Get-ExportFolder("ExportedeDiscoverySearchData")
        if(!$Folder){
            return
        }
        $filepath = $Folder + "\" + "eDiscoverySearchSupportData.Json"

        GetSearchInformation -ComplianceSearchName $global:eDiscControlVariables.ComplianceSearchTextBox.Text -ComplianceSearchAction $global:eDiscControlVariables.ComplianceSearchActionTextBox.Text -CaseHoldPolicyName $global:eDiscControlVariables.GetCaseHoldPolicyTextBox.Text -ComplianceCaseName $global:eDiscControlVariables.GetComplianceCaseTextBox.Text

        $supportData = @{}

        if (![string]::IsNullOrWhiteSpace($global:eDiscControlVariables.ComplianceSearchTextBox.Text)) {
            $supportData["ComplianceSearch"] = $global:eDiscControlVariables.ComplianceSearch
        }
        if (![string]::IsNullOrWhiteSpace($global:eDiscControlVariables.ComplianceSearchActionTextBox.Text)) {
            $supportData["ComplianceSearchAction"] = $global:eDiscControlVariables.ComplianceSearchAction
        }
        if (![string]::IsNullOrWhiteSpace($global:eDiscControlVariables.GetCaseHoldPolicyTextBox.Text)) {
            $supportData["CaseHoldPolicy"] = $global:eDiscControlVariables.CaseHoldPolicy
        }
        if (![string]::IsNullOrWhiteSpace($global:eDiscControlVariables.GetComplianceCaseTextBox.Text)) {
            $supportData["ComplianceCase"] = $global:eDiscControlVariables.ComplianceCase
        }
        

        try{
            $supportData["AttachedFiles"] = Get-FileName($global:eDiscControlVariables.HoldfileData)
            foreach($file in $global:eDiscControlVariables.HoldfileData){
                Copy-Item $file -Destination $Folder -force
            }

            CleanAndShowFolder -folder $Folder -supportData $supportData -filepath $filepath
        }
        catch{
            [System.Windows.MessageBox]::Show("Failed to create zip file. Error message: $_", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
        }

    })

}

function Get-eDiscExportSupportTemplate() {
    $redColor = [System.Windows.Media.Color]::FromRgb(200, 10, 10)
    $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206)
    $supportDataHeader = Show-Text -Text "eDiscovery Export Support Data collection (Please remove PII data before attaching)" -Color $blueColor -fontSize 20

    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Clear()
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($supportDataHeader) > $null
    
    $tableGrid = Get-Table -coumns 4 -rows 6

    $exportLabel = Show-Text -Text "Export Data Collection" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -Color $blueColor
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $exportLabel

    $exportSearchResultLabel = Show-Text -Text "Export the Search result (https://aka.ms/eDiscoverySearchResult) " -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $exportSearchResultLabel

    $exportSearchResultButton = Get-FileButton `
        -GlobalScopeName "eDiscControlVariables" `
        -GlobalvariableName "ExportSearchResultLabel" `
        -GlobalFileListName "ExportSearchResultData" `
        -buttonName "Browse Export Search Result"`
        -Margin "500,0,10,0"`
        -horizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"

    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 3 -Control $exportSearchResultButton

    $global:eDiscControlVariables.ExportSearchResultLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "500,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    $eDiscoveryScrollViewer = New-Object Windows.Controls.ScrollViewer
    $eDiscoveryScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer.Content = $global:eDiscControlVariables.ExportSearchResultLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $eDiscoveryScrollViewer

    $exporSearchReportLabel = Show-Text -Text "Export the Search Report information (https://aka.ms/eDiscoverySearchReport) " -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $exporSearchReportLabel

    $exportSearchReportButton = Get-FileButton `
        -GlobalScopeName "eDiscControlVariables" `
        -GlobalvariableName "ExportSearchReportLabel" `
        -GlobalFileListName "ExportSearchReportData" `
        -buttonName "Browse Export Search Report"`
        -Margin "500,0,10,0"`
        -horizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"

    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 3 -Control $exportSearchReportButton

    $global:eDiscControlVariables.ExportSearchReportLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "500,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    $eDiscoveryScrollViewer2 = New-Object Windows.Controls.ScrollViewer
    $eDiscoveryScrollViewer2.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer2.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $eDiscoveryScrollViewer2.Content = $global:eDiscControlVariables.ExportSearchReportLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 3 -Control $eDiscoveryScrollViewer2

    $tablegrid.margin = new-object system.windows.thickness(10,20,10,10)

    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($tableGrid) > $null

    $eDiscoveryExportButton = Get-Button -ButtonName "Export eDiscovery Data" -Margin '300,0,10,0' -width 200 -HorizontalAlignment "Left"
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($eDiscoveryExportButton) > $null

    $eDiscoExportDisclaimer = Show-Text -Text "*Please remove the PII Data from the export before attaching" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" -Color $redColor
    $global:eDiscControlVariables.eDiscSupportDataTabContent.Children.Add($eDiscoExportDisclaimer)> $null

    $eDiscoveryExportButton.Add_Click({
        $Folder =Get-ExportFolder("ExportedeDiscoveryData")
        if(!$Folder){
            return
        }
        $filepath = $Folder + "\" + "eDiscoveryExportSupportData.Json"

        $supportData = @{}
       
        try{
            $supportData["ExportSearchResult"] = Get-FileName($global:eDiscControlVariables.ExportSearchResultData)
            foreach($file in $global:eDiscControlVariables.ExportSearchResultData){
                Copy-Item $file -Destination $Folder -force
            }

            $supportData["ExportSearchReport"] = Get-FileName($global:eDiscControlVariables.ExportSearchReportData)
            foreach($file in $global:eDiscControlVariables.ExportSearchReportData){
                Copy-Item $file -Destination $Folder -force
            }

            CleanAndShowFolder -folder $Folder -supportData $supportData -filepath $filepath
        }
        catch{
            [System.Windows.MessageBox]::Show("Failed to create zip file. Error message: $_", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
        }

    })


}



Function GetGlobalHoldPolicyRules{
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Wait)
    Write-Host "Getting Hold Policy, Rules for your Organization"
 # $HoldPolicy = Get-CaseHoldPolicy
    $HoldPolicyRules = Get-CaseHoldRule
 # $global:eDiscControlVariables.HoldPolicy = $HoldPolicy
    $global:eDiscControlVariables.HoldPolicyRules = @($HoldPolicyRules.Name)

  

    return $global:eDiscControlVariables.HoldPolicyRules

}

Function GetSearchInformation($ComplianceSearchName, $ComplianceSearchAction, $CaseHoldPolicyName, $ComplianceCaseName){
    # Case search name input from customer
    [Parameter(Mandatory=$false)]
    [string]    $ComplianceSearchName
    [Parameter(Mandatory=$false)]
    [string]    $ComplianceSearchAction
    [Parameter(Mandatory=$false)]
    [string]    $CaseHoldPolicyName
    [Parameter(Mandatory=$false)]
    [string]    $ComplianceCaseName

    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Wait)
    Write-Host "Getting Search Information for your Organization"
    
    $nonBlankValues = @()
    if (![string]::IsNullOrWhiteSpace($compliancesearchname)) {
        $global:eDiscControlVariables.ComplianceSearchName = Get-ComplianceSearch $ComplianceSearchName | Format-List
        $nonBlankValues += $compliancesearchname
    }
    if (![string]::IsNullOrWhiteSpace($compliancecasesearchaction)) {
        $global:eDiscControlVariables.ComplianceSearchAction = Get-ComplianceSearchAction $ComplianceSearchAction | Format-List
        $nonBlankValues += $compliancecasesearchaction
    }
    if (![string]::IsNullOrWhiteSpace($caseholdpolicyname)) {
        $global:eDiscControlVariables.CaseHoldPolicyName = Get-CaseHoldPolicy $CaseHoldPolicyName | ForEach-Object {"--CaseHoldPolicy--";$_ | Format-List;"--CaseHoldRule--";Get-CaseHoldRule -Policy $_.Name | Format-List}
        $nonBlankValues += $caseholdpolicyname    
    }
    if (![string]::IsNullOrWhiteSpace($compliancecasename)) {
        $global:eDiscControlVariables.ComplianceCaseName = Get-ComplianceCase $ComplianceCaseName | ForEach-Object { $_ | Format-List; "`t==Searches=="; Get-ComplianceSearch -Case $_.Name | Format-List; "`t==Search Actions=="; Get-ComplianceSearchAction -Case $_.Name | Format-List; "`t==Holds=="; Get-CaseHoldPolicy -Case $_.Name | ForEach-Object { $_ | Format-List; "`t`t==$($_.Name) Rules=="; Get-CaseHoldRule -Policy $_.Name | Format-List } }
        $nonBlankValues += $compliancecasename    
    }

    return $global:eDiscControlVariables.ComplianceSearch, $global:eDiscControlVariables.ComplianceSearchAction, $global:eDiscControlVariables.CaseHoldPolicy, $global:eDiscControlVariables.ComplianceCase
}




   

#endregion eDiscovery
Export-ModuleMember -Function *
# SIG # Begin signature block
# MIInwQYJKoZIhvcNAQcCoIInsjCCJ64CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCACM0vcYpB9d5dD
# E8Iqjeo57lvB6oRNUwX+2x/KsPdVrKCCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMxMTE2MTkwOTAwWhcNMjQxMTE0MTkwOTAwWjB0MQsw
# CQYDVQQGEwJV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