ComplianceDiagnosticAutoLabeling.psm1
Import-Module "$PSScriptRoot\ComplianceDiagnosticUtils.psm1" function Confirm-AutoLabelingCommandsPresent { # Check if AutoLabeling Commands are present $command = Get-Command Get-AutoSensitivityLabelRule -ErrorAction SilentlyContinue if ($command -eq $null) { return $false } $command = Get-Command Get-AutoSensitivityLabelPolicy -ErrorAction SilentlyContinue if ($command -eq $null) { return $false } return $true } function Initialize-AutoSpo{ $global:alpControlVariables.AutoSpoHarFiles = $null $global:alpControlVariables.AutoSpoTdpFiles = $null $global:alpControlVariables.AutoSpoFiddlerFiles = $null } function Initialize-AutoExo{ $global:alpControlVariables.AutoExoEmailFiles = $null $global:alpControlVariables.AutoExoEmtdFiles = $null $global:alpControlVariables.AutoExoFiddlerFiles = $null } function Get-AutoLabelingTabContent ($TabObject){ [Parameter(Mandatory=$true)] [Windows.Controls.TabItem] $TabObject GetGlobalAlpRule $alpExchangeButton = Get-Button -ButtonName "Exchange AutoLabeling" $alpSPOButton = Get-Button -ButtonName "SPO/ODB AutoLabeling" -Margin "10,50,10,10" $alpPanelGrid = New-Object Windows.Controls.Grid $alpTopTabControl = Get-TopTabControl $alpPanelGrid.Children.Add($alpTopTabControl.TopTabControl) > $null $global:ContextScopeVariables.alpOutput = New-Object Windows.Controls.StackPanel $outputPanelTemplate = Get-TemplateGrid $outputPanelTemplate.Column1.Children.Add($alpExchangeButton) > $null $alpDiagnosticTabContent = New-Object Windows.Controls.StackPanel $alpDiagnosticTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center $alpDiagnosticTabContent.VerticalAlignment = [Windows.VerticalAlignment]::Top $alpDiagnosticTabContent.Margin = New-Object Windows.Thickness 0, 70, 0, 0 $alpDiagnosticTabContent.Children.Add($global:ContextScopeVariables.alpOutput) > $null $scrollViewer = New-Object Windows.Controls.ScrollViewer $scrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $scrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $outputPanelTemplate.Column2.Children.Add($alpDiagnosticTabContent) > $null $scrollViewer.Content = $outputPanelTemplate.Grid # $alpTopTabControl.DiagnosticsTabItem.Content = $scrollViewer // TODO : revive it after logic is built $alpExchangeButton.Add_Click({ }) $alpSPOButton.Add_Click({ }) # Collect diagnostic data from user $global:alpControlVariables.alpSupportDataTabContent = New-Object Windows.Controls.StackPanel $global:alpControlVariables.alpSupportDataTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center $global:alpControlVariables.SupportPanelTemplate = Get-TemplateGrid $alpEXOSupportButton = Get-Button -ButtonName "Exchange AutoLabeling" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left" $global:alpControlVariables.SupportPanelTemplate.Column1.Children.Add($alpEXOSupportButton) > $null $alpSPOSupportButton = Get-Button -ButtonName "SPO/ODB AutoLabeling" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left" $global:alpControlVariables.SupportPanelTemplate.Column1.Children.Add($alpSPOSupportButton) > $null $DiagscrollViewer = New-Object Windows.Controls.ScrollViewer $DiagscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $DiagscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $DiagscrollViewer.Content = $global:alpControlVariables.SupportPanelTemplate.Grid $alpTopTabControl.GatherSupportDataTabItem.Content = $DiagscrollViewer $global:alpControlVariables.SupportPanelTemplate.Column2.Children.Add($global:alpControlVariables.alpSupportDataTabContent ) > $null $alpEXOSupportButton.Add_Click({ Initialize-AutoExo Get-alpEXOSupportTemplate }) $alpSPOSupportButton.Add_Click({ Initialize-AutoSpo Get-alpSPOSupportTemplate }) #$alpSupportDataTabContent.Children.Add($GetAlpExoExport) $TabObject.Content = $alpPanelGrid } function Get-alpSPOSupportTemplate(){ $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206) $redColor = [System.Windows.Media.Color]::FromRgb(200, 10, 10) $supportDataHeader = Show-Text -Text "AutoLabeling Sharepoint/ODB Support Data Template" -Color $blueColor -fontSize 20 $tableGrid = Get-Table -columns 4 -rows 14 $AffectedDoc = Show-Text -Text "Affected File Path" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -ShowHelp $true $AffectedDoc.ToolTip = Get-ToolTip -Text "Navigate to the document library on Browser `n Select the file `n Click on the ... dots `n Select 'Details' option `n A panel opens on the right `n Scroll to Bottom `n Click on copy icon beside path" Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 1 -Control $AffectedDoc $global:alpControlVariables.AffectedDocPath = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:alpControlVariables.AffectedDocPath $global:alpControlVariables.AffectedDocError = Show-Text -Text "Could not find the document. Please make sure that a valid path is provided." -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -Color $redColor $global:alpControlVariables.AffectedDocError.Visibility = [Windows.Visibility]::Hidden Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 3 -Control $global:alpControlVariables.AffectedDocError $scopedPolicyLabel = Show-Text -Text "Impacted Policy" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 1 -Control $scopedPolicyLabel $global:alpControlVariables.scopedPolicyComboboxSPO = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left" $global:alpControlVariables.scopedPolicyComboboxSPO.ItemsSource = $global:ContextScopeVariables.alpPolicyDropDown Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $global:alpControlVariables.scopedPolicyComboboxSPO $dateTimeLabel = Show-Text -Text "Date & Time of issue (UTC)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 1 -Control $dateTimeLabel $dateTimeButton = Get-Button -ButtonName "Select date & Time" -Margin "0,0,10,0" -HorizontalAlignment "Left" -height 30 -width 220 Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $dateTimeButton $global:ContextScopeVariables["AlpSPODateTimeLabel"] = Show-Text -Text "UTC Date Time" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $global:ContextScopeVariables["AlpSPODateTimeLabel"] $dateTimeButton.Add_Click({ $global:ContextScopeVariables.DateTimeProp = "AlpSPODateTime" $global:ContextScopeVariables["AlpSPODateTime"] = "" Get-DateTimePickerDialog }) $global:alpControlVariables.scopedPolicyComboboxSPO.add_SelectionChanged({ if ($global:alpControlVariables.scopedPolicyComboboxSPO.SelectedItem -ne $null){ $selectedRule = $global:ContextScopeVariables.alpRules|?{$_.ParentPolicyName -eq $global:alpControlVariables.scopedPolicyComboboxSPO.SelectedItem} if ($selectedRule.GetType().Name -eq "PSObject") { $selectedRuleName = @( $selectedRule.Name ) } else { $selectedRuleName = $selectedRule.Name } $global:alpControlVariables.ImpactedRuleComboboxSPO.ItemsSource = $selectedRuleName } }) $ImpactedRule = Show-Text -Text "Impacted Rule" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $ImpactedRule $global:alpControlVariables.ImpactedRuleComboboxSPO = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left" $global:alpControlVariables.ImpactedRuleComboboxSPO.ItemsSource = $global:ContextScopeVariables.alpRuleDropDown #$global:alpControlVariables.ImpactedLabelCombobox.SelectionMode = "Multiple" Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $global:alpControlVariables.ImpactedRuleComboboxSPO $global:alpControlVariables.ImpactedRuleComboboxSPO.add_SelectionChanged({ if ($global:alpControlVariables.ImpactedRuleComboboxSPO.SelectedItem -ne $null){ $selectedRule = $global:ContextScopeVariables.alpRules|?{$_.Name -eq $global:alpControlVariables.ImpactedRuleComboboxSPO.SelectedItem} $global:alpControlVariables.scopedPolicyComboboxSPO.Text = $selectedRule.ParentPolicyName } }) $BrowseSimHarLabel1 = Show-Text -Text "If Simulation Issue" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 1 -Control $BrowseSimHarLabel1 $BrowseSimHarLabel2 = Show-Text -Text "Please gather while loading Simulation page" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $BrowseSimHarLabel2 $BrowseSimHarLabel = Show-Text -Text "Network Trace (.har)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 1 -Control $BrowseSimHarLabel $BrowseSimHarButton = Get-FileButton ` -GlobalScopeName "alpControlVariables" ` -GlobalVariableName "AutoSpoHarLabel" ` -GlobalFileListName "AutoSpoHarFiles" ` -ButtonName "Browse Simulation .har file" ` -Margin "0,0,10,0" ` -HorizontalAlignment "Left" ` -height 30 ` -width 220 ` -VerticalAlignment "Center" Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $BrowseSimHarButton $global:alpControlVariables.AutoSpoHarLabel = Show-Text -Text "Attached Simulation Har File" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" $SimHarFilesScrollViewer = New-Object Windows.Controls.ScrollViewer $SimHarFilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $SimHarFilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $SimHarFilesScrollViewer.Content = $global:alpControlVariables.AutoSpoHarLabel Add-ControlToTableAt -TableObj $tableGrid -row 6 -column 2 -Control $SimHarFilesScrollViewer $docSiteIdlabel = Show-Text -Text "Site ID (GUID) of document" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -ShowHelp $true $docSiteIdlabel.ToolTip = Get-ToolTip -Text "Populate the Document Path field`nThen a link would be shown beside this text box`nUse that link to get the siteId`ncopy the GUID between<d:Id ...></d:Id>" Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 1 -Control $docSiteIdlabel $global:alpControlVariables.docSiteId = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 2 -Control $global:alpControlVariables.docSiteId $global:alpControlVariables.docSiteIdHelp = Show-Text -Text "Help" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 3 -Control $global:alpControlVariables.docSiteIdHelp $global:alpControlVariables.docSiteIdHelp.Visibility = [Windows.Visibility]::Hidden $reportSMTP = Show-Text -Text "Test-DlpPolicies Report Email address" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 8 -column 1 -Control $reportSMTP $global:alpControlVariables.reportSmtp = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 8 -column 2 -Control $global:alpControlVariables.reportSmtp $TestDlpPoliciesButton = Get-Button -ButtonName "Run Test-DlpPolicies" -Margin "0,0,10,0" -HorizontalAlignment "Left" -height 30 -width 220 Add-ControlToTableAt -TableObj $tableGrid -row 8 -column 3 -Control $TestDlpPoliciesButton $global:alpControlVariables.AffectedDocPath.Add_TextChanged({ $FileUrl = $global:alpControlVariables.AffectedDocPath.Text -replace ":w:/r/", "" $siteUrl = $FileUrl -replace "(https?://.+?\.sharepoint\.com|https?://.+?\.sharepoint-df\.com|https?://(1drv|onedrive)\.live\.com)/([^/]+)/([^/]+)/([^/]+/)*[^/]+(\.\w+)?(\?[^#]*)?(#.*)?$", '$1/$3/$4' $apiLink = "$siteUrl/_api/site/id" if($siteUrl){ $global:alpControlVariables.docSiteIdHelp.Text = "" $global:alpControlVariables.docSiteIdHelp.Inlines.Clear() # Add regular text to the tooltip $global:alpControlVariables.docSiteIdHelp.Inlines.Add("Click the following link to get the site id between <d:Id> tags `n") # Create a Hyperlink $hyperlink = New-Object Windows.Documents.Hyperlink $hyperlink.Inlines.Add("Click Here For SiteID") $hyperlink.NavigateUri = $apiLink $hyperlink.Add_RequestNavigate({ Start-Process $args.Uri.AbsoluteUri }) # Add the Hyperlink to the TextBlock $global:alpControlVariables.docSiteIdHelp.Inlines.Add($hyperlink) $global:alpControlVariables.docSiteIdHelp.Visibility = [Windows.Visibility]::Visible }else{ $global:alpControlVariables.docSiteIdHelp.Visibility = [Windows.Visibility]::Hidden } }) $TestDlpPoliciesButton.Add_Click({ if ($global:alpControlVariables.AffectedDocPath.Text -eq $null) { [System.Windows.MessageBox]::Show("Please enter the affected doc path in SPO/ODB.","Error",0,0) return } if ($global:alpControlVariables.reportSmtp.Text -eq $null) { [System.Windows.MessageBox]::Show("Please enter the email the report has to be sent to.","Error",0,0) return } if ($global:alpControlVariables.docSiteId.Text -eq $null) { [System.Windows.MessageBox]::Show("Please enter the Site ID (GUID) of the document.","Error",0,0) return } $global:alpControlVariables.AffectedDocError.Visibility = [Windows.Visibility]::Hidden $v = $global:alpControlVariables.AffectedDocPath.Text $FileUrl = $v -replace ":w:/r/", "" $siteUrl = $FileUrl -replace "(https?://.+?\.sharepoint\.com|https?://.+?\.sharepoint-df\.com|https?://(1drv|onedrive)\.live\.com)/([^/]+)/([^/]+)/([^/]+/)*[^/]+(\.\w+)?(\?[^#]*)?(#.*)?$", '$1/$3/$4' $siteId = $global:alpControlVariables.docSiteId.Text $workload = "SPO" if($FileUrl -like "*-my.sharepoint*") { $workload = "ODB" } $pattern = "(?<=\%7B)(.*?)(?=\%7D)" $pattern1 = "(?<=\{)(.*?)(?=\})" if ($FileUrl -match $pattern) { $matchesR = [regex]::Matches($FileUrl, $pattern) $match = $matchesR[0].Value #Write-Host "Id" -NoNewLine -ForegroundColor Blue; Write-Host " $match" -ForegroundColor Cyan $id = $match }elseif($FileUrl -match $pattern1){ $matchesR = [regex]::Matches($FileUrl, $pattern1) $match = $matchesR[0].Value #Write-Host "Id" -NoNewLine -ForegroundColor Blue; Write-Host " $match" -ForegroundColor Cyan $id = $match } if(!$siteUrl){ $global:alpControlVariables.AffectedDocError.Visibility = [Windows.Visibility]::Visible } else{ $scriptBlock = { param($siteId, $FileUrl, $workload, $reportAddr) $res = Test-DlpPolicies -SiteId $siteId -FileUrl $FileUrl -Workload $workload -SendReportTo $reportAddr return $res } $ps = [powershell]::Create().AddScript($scriptBlock) $ps.AddArgument($siteId) $ps.AddArgument($FileUrl) $ps.AddArgument($workload) $ps.AddArgument($global:alpControlVariables.reportSmtp.Text) $global:alpControlVariables.TDPResult = Get-ExoCmdletResult -ps $ps if($global:alpControlVariables.TDPResult.Message.Contains("Unable to find the file")){ $global:alpControlVariables.AffectedDocError.Visibility = [Windows.Visibility]::Visible }elseif($global:alpControlVariables.TDPResult.Message.Contains("request is accepted")){ $global:alpControlVariables.AutoSpoTdpLabel.Text = "A Report has been sent to the above email address with subject 'Test-DlpPolicies on File'. `nPlease download it and attach here." } } }) $TDPLabel = Show-Text -Text "Attach Test-DlpPolicy Report" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 1 -Control $TDPLabel $TDPButton = Get-FileButton ` -GlobalScopeName "alpControlVariables" ` -GlobalVariableName "AutoSpoTdpLabel" ` -GlobalFileListName "AutoSpoTdpFiles" ` -ButtonName "Browse Test-DlpPolicy Report" ` -Margin "0,0,10,0" ` -HorizontalAlignment "Left" ` -height 30 ` -width 220 ` -VerticalAlignment "Center" Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 2 -Control $TDPButton $global:alpControlVariables.AutoSpoTdpLabel = Show-Text -Text "Attached Test-DlpPolicies Report" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" $TDPscrollViewer = New-Object Windows.Controls.ScrollViewer $TDPscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $TDPscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $TDPscrollViewer.Content = $global:alpControlVariables.AutoSpoTdpLabel Add-ControlToTableAt -TableObj $tableGrid -row 10 -column 2 -Control $TDPscrollViewer $BrowseAttachLabel = Show-Text -Text "Attach Screenshot/ Fiddler / Other info?" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 11 -column 1 -Control $BrowseAttachLabel $BrowseAttachButton = Get-FileButton ` -GlobalScopeName "alpControlVariables" ` -GlobalVariableName "AutoSpoFiddlerLabel" ` -GlobalFileListName "AutoSpoFiddlerFiles" ` -ButtonName "Browse Supporting Files" ` -Margin "0,0,10,0" ` -HorizontalAlignment "Left" ` -height 30 ` -width 220 ` -VerticalAlignment "Center" Add-ControlToTableAt -TableObj $tableGrid -row 11 -column 2 -Control $BrowseAttachButton $global:alpControlVariables.AutoSpoFiddlerLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" $FilesScrollViewer = New-Object Windows.Controls.ScrollViewer $FilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $FilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $FilesScrollViewer.Content = $global:alpControlVariables.AutoSpoFiddlerLabel Add-ControlToTableAt -TableObj $tableGrid -row 12 -column 2 -Control $FilesScrollViewer $AdditionalDoc = Show-Text -Text "Additional file paths" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 13 -column 1 -Control $AdditionalDoc $global:alpControlVariables.AdditionalPaths = Get-TextBox -Width 400 -height 150 -Margin "0,0,10,0" -HorizontalAlignment "Left" $global:alpControlVariables.AdditionalPaths.AcceptsReturn = $true $global:alpControlVariables.AdditionalPaths.TextWrapping = "Wrap" Add-ControlToTableAt -TableObj $tableGrid -row 13 -column 2 -Control $global:alpControlVariables.AdditionalPaths $tableGrid.Margin = New-Object System.Windows.Thickness(10,30,10,10) $tableGrid.HorizontalAlignment = "Center" $tableGrid.ColumnDefinitions[2].Width = 410 $global:alpControlVariables.alpSupportDataTabContent.Children.Clear() $global:alpControlVariables.alpSupportDataTabContent.Children.Add($supportDataHeader) > $null $global:alpControlVariables.alpSupportDataTabContent.Children.Add($tableGrid) > $null $GetAlpSPOExport = Get-Button -ButtonName "Export Support Data" $GetAlpSPOExport.Margin = New-Object System.Windows.Thickness(10,50,10,10) $global:alpControlVariables.alpSupportDataTabContent.Children.Add($GetAlpSPOExport) > $null $GetAlpSPOExport.Add_Click({ # Create a new SaveFileDialog object $Folder = Get-ExportFolder("ExportedAutoLabelingSPOData") if (!$Folder) { return } $filePath = $Folder + "\"+"AutoLabelingPolicyExport.xmla" $supportData=@{} $supportData["AlpPolicy"] = $global:ContextScopeVariables.alpPolicy $supportData["AlpRule"] = $global:ContextScopeVariables.alpRules $supportData["FilePath"] = $global:alpControlVariables.AffectedDocPath.Text $supportData["ImpactedRule"] = $global:alpControlVariables.ImpactedRuleComboboxSPO.Text $supportData["ScopedPolicy"] = $global:alpControlVariables.scopedPolicyComboboxSPO.Text $supportData["AdditionalFilePaths"] = $global:alpControlVariables.AdditionalPaths.Text $supportData["ComplianceProperties"] = $global:alpControlVariables.TDPResult # $supportData["Forests"] = Get-ForestInfo $supportData["DateTime"] = $global:ContextScopeVariables["AlpSPODateTime"] try { # Copy the files to the destination folder $supportData["TestDlpPoliciesReportFiles"] = Get-FileName($global:alpControlVariables.AutoSpoTdpFiles) foreach ($file in $global:alpControlVariables.AutoSpoTdpFiles) { Copy-Item $file $Folder -Force } # Copy the files to the destination folder $supportData["SupportingFiles"] = Get-FileName($global:alpControlVariables.AutoSpoFiddlerFiles) foreach ($file in $global:alpControlVariables.AutoSpoFiddlerFiles) { Copy-Item $file $Folder -Force } # Copy the files to the destination folder $supportData["SimulationHarFiles"] = Get-FileName($global:alpControlVariables.AutoSpoHarFiles) foreach ($file in $global:alpControlVariables.AutoSpoHarFiles) { Copy-Item $file $Folder -Force } # Save the object as an XMLA file # $supportData | Export-Clixml -Path $filePath # Zip the destination folder 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-alpEXOSupportTemplate(){ $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206) $supportDataHeader = Show-Text -Text "AutoLabeling Exchagne Support Data Template" -Color $blueColor -fontSize 20 $tableGrid = Get-Table -columns 4 -rows 11 $AffectedClient = Show-Text -Text "Affected Client" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 1 -Control $AffectedClient $AffectedClientCombo = @('Outlook For Web','Outlook Windows application', "Outlook Mobile") $global:alpControlVariables.AffectedClientComboboxExo = Get-ComboBox -Margin "0,5,10,5" -Width 400 -HorizontalAlignment "Left" $global:alpControlVariables.AffectedClientComboboxExo.ItemsSource = $AffectedClientCombo Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:alpControlVariables.AffectedClientComboboxExo $ImpactedUserSMTP = Show-Text -Text "Impacted User/Group SMTP" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 1 -Control $ImpactedUserSMTP $global:alpControlVariables.ImpactedUserTextBoxExo = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $global:alpControlVariables.ImpactedUserTextBoxExo $dateTimeLabel = Show-Text -Text "Date & Time of issue (UTC)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 1 -Control $dateTimeLabel $dateTimeButton = Get-Button -ButtonName "Select date & Time" -Margin "0,0,10,0" -HorizontalAlignment "Left" -height 30 -width 220 Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $dateTimeButton $global:ContextScopeVariables["AlpEXODateTimeLabel"] = Show-Text -Text "UTC Date Time" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $global:ContextScopeVariables["AlpEXODateTimeLabel"] $dateTimeButton.Add_Click({ $global:ContextScopeVariables.DateTimeProp = "AlpEXODateTime" $global:ContextScopeVariables["AlpEXODateTime"] = "" Get-DateTimePickerDialog }) $scopedPolicyLabel = Show-Text -Text "Impacted Policy" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $scopedPolicyLabel $global:alpControlVariables.scopedPolicyComboboxExo = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left" $global:alpControlVariables.scopedPolicyComboboxExo.ItemsSource = $global:ContextScopeVariables.alpPolicyDropDown Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $global:alpControlVariables.scopedPolicyComboboxExo $global:alpControlVariables.scopedPolicyComboboxExo.add_SelectionChanged({ if ($global:alpControlVariables.scopedPolicyComboboxExo.SelectedItem -ne $null){ $selectedRule = $global:ContextScopeVariables.alpRules|?{$_.ParentPolicyName -eq $global:alpControlVariables.scopedPolicyComboboxExo.SelectedItem} if ($selectedRule.GetType().Name -eq "PSObject") { $selectedRuleName = @( $selectedRule.Name ) } else { $selectedRuleName = $selectedRule.Name } $global:alpControlVariables.ImpactedRuleComboboxExo.ItemsSource = $selectedRuleName } }) $ImpactedRule = Show-Text -Text "Impacted Rule" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 1 -Control $ImpactedRule $global:alpControlVariables.ImpactedRuleComboboxExo = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left" $global:alpControlVariables.ImpactedRuleComboboxExo.ItemsSource = $global:ContextScopeVariables.alpRuleDropDown #$global:alpControlVariables.ImpactedLabelCombobox.SelectionMode = "Multiple" Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $global:alpControlVariables.ImpactedRuleComboboxExo $global:alpControlVariables.ImpactedRuleComboboxExo.add_SelectionChanged({ if ($global:alpControlVariables.ImpactedRuleComboboxExo.SelectedItem -ne $null){ $selectedRule = $global:ContextScopeVariables.alpRules|?{$_.Name -eq $global:alpControlVariables.ImpactedRuleComboboxExo.SelectedItem} $global:alpControlVariables.scopedPolicyComboboxExo.Text = $selectedRule.ParentPolicyName } }) $SampleEmailLabel = Show-Text -Text "Sample Email file (.eml)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 1 -Control $SampleEmailLabel $SampleEmailButton = Get-FileButton ` -GlobalScopeName "alpControlVariables" ` -GlobalVariableName "AutoExoEmailLabel" ` -GlobalFileListName "AutoExoEmailFiles" ` -ButtonName "Browse Sample Email" ` -Margin "0,0,10,0" ` -HorizontalAlignment "Left" ` -height 30 ` -width 220 ` -VerticalAlignment "Center" Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $SampleEmailButton $global:alpControlVariables.AutoExoEmailLabel = Show-Text -Text "Attached Sample Email" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" $SampleEmailscrollViewer = New-Object Windows.Controls.ScrollViewer $SampleEmailscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $SampleEmailscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $SampleEmailscrollViewer.Content = $global:alpControlVariables.AutoExoEmailLabel Add-ControlToTableAt -TableObj $tableGrid -row 6 -column 2 -Control $SampleEmailscrollViewer $global:alpControlVariables.EMTDLabel = Show-Text -Text "Extended Message Trace Detail" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" -ShowHelp $true $global:alpControlVariables.EMTDLabel.ToolTip = Get-ToolTip -Text "Follow instructions from below page`nhttps://learn.microsoft.com/en-us/exchange/monitoring/trace-an-email-message/message-trace-modern-eac#open-message-trace" Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 1 -Control $global:alpControlVariables.EMTDLabel $EMTDButton = Get-FileButton ` -GlobalScopeName "alpControlVariables" ` -GlobalVariableName "AutoExoEmtdLabel" ` -GlobalFileListName "AutoExoEmtdFiles" ` -ButtonName "Browse EMTD" ` -Margin "0,0,10,0" ` -HorizontalAlignment "Left" ` -height 30 ` -width 220 ` -VerticalAlignment "Center" Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 2 -Control $EMTDButton $global:alpControlVariables.AutoExoEmtdLabel = Show-Text -Text "Attached EMTD" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" $EMTDscrollViewer = New-Object Windows.Controls.ScrollViewer $EMTDscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $EMTDscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $EMTDscrollViewer.Content = $global:alpControlVariables.AutoExoEmtdLabel Add-ControlToTableAt -TableObj $tableGrid -row 8 -column 2 -Control $EMTDscrollViewer $BrowseAttachLabel = Show-Text -Text "Attach Screenshot/ Fiddler / Other info?" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 1 -Control $BrowseAttachLabel $BrowseAttachButton = Get-FileButton ` -GlobalScopeName "alpControlVariables" ` -GlobalVariableName "AutoExoFiddlerLabel" ` -GlobalFileListName "AutoExoFiddlerFiles" ` -ButtonName "Browse Supporting Files" ` -Margin "0,0,10,0" ` -HorizontalAlignment "Left" ` -height 30 ` -width 220 ` -VerticalAlignment "Center" Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 2 -Control $BrowseAttachButton $global:alpControlVariables.AutoExoFiddlerLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" $FilesScrollViewer = New-Object Windows.Controls.ScrollViewer $FilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $FilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto $FilesScrollViewer.Content = $global:alpControlVariables.AutoExoFiddlerLabel Add-ControlToTableAt -TableObj $tableGrid -row 10 -column 2 -Control $FilesScrollViewer #$alpSupportDataTabContent.Children.Add($global:alpControlVariables.AutoExoFiddlerLabel) $tableGrid.Margin = New-Object System.Windows.Thickness(10,30,10,10) $tableGrid.HorizontalAlignment = "Center" $tableGrid.ColumnDefinitions[2].Width = 410 $global:alpControlVariables.alpSupportDataTabContent.Children.Clear() $global:alpControlVariables.alpSupportDataTabContent.Children.Add($supportDataHeader) > $null $global:alpControlVariables.alpSupportDataTabContent.Children.Add($tableGrid) > $null $GetAlpExoExport = Get-Button -ButtonName "Export Support Data" $GetAlpExoExport.Margin = New-Object System.Windows.Thickness(10,50,10,10) $global:alpControlVariables.alpSupportDataTabContent.Children.Add($GetAlpExoExport) > $null $GetAlpExoExport.Add_Click({ # Create a new SaveFileDialog object $Folder = Get-ExportFolder("ExportedAutoLabelingEXOData") if (!$Folder) { return } $filePath = $Folder + "\"+"AutoLabelingPolicyExport.xmla" $supportData=@{} $supportData["AlpPolicy"] = $global:ContextScopeVariables.alpPolicy $supportData["AlpRule"] = $global:ContextScopeVariables.alpRules $supportData["ImpactedClient"] = $global:alpControlVariables.AffectedClientComboboxExo.SelectedItem $supportData["ImpactedUser"] = $global:alpControlVariables.ImpactedUserTextBoxExo.Text $supportData["ImpactedRule"] = $global:alpControlVariables.ImpactedRuleComboboxExo.SelectedItem $supportData["ScopedPolicy"] = $global:alpControlVariables.scopedPolicyComboboxExo.SelectedItem #$supportData["Forests"] = Get-ForestInfo $supportData["DateTime"] = $global:ContextScopeVariables["AlpExoDateTime"] try { # Copy the files to the destination folder $supportData["ExtendedMessageTraceFiles"] = Get-FileName($global:alpControlVariables.AutoExoEmtdFiles) foreach ($file in $global:alpControlVariables.AutoExoEmtdFiles) { Copy-Item $file $Folder -Force } # Copy the files to the destination folder $supportData["SupportingFiles"] = Get-FileName($global:alpControlVariables.AutoExoFiddlerFiles) foreach ($file in $global:alpControlVariables.AutoExoFiddlerFiles) { Copy-Item $file $Folder -Force } # Copy the files to the destination folder $supportData["ReproFiles"] = Get-FileName($global:alpControlVariables.AutoExoEmailFiles) foreach ($file in $global:alpControlVariables.AutoExoEmailFiles) { Copy-Item $file $Folder -Force } # Save the object as an XMLA file # $supportData | Export-Clixml -Path $filePath 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 GetGlobalAlpRule { [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Wait) if($global:ContextScopeVariables.alpRules -and $global:ContextScopeVariables.alpPolicy){ return } Write-Host "Getting Autolabeling policies in your organization." $global:ContextScopeVariables.alpPolicy = Get-AutoSensitivityLabelPolicy -IncludeTestModeResults $true -IncludeProgressFeedback if ($global:ContextScopeVariables.alpPolicy -ne $null) { if ($global:ContextScopeVariables.alpPolicy.GetType().Name -eq "PSObject") { $global:ContextScopeVariables.alpPolicyDropDown = @( $global:ContextScopeVariables.alpPolicy.Name ) } else { $global:ContextScopeVariables.alpPolicyDropDown = $global:ContextScopeVariables.alpPolicy.Name } } Write-Host "Getting Autolabeling rules in your organization." $global:ContextScopeVariables.alpRules = Get-AutoSensitivityLabelRule if ($global:ContextScopeVariables.alpRules -ne $null) { if ($global:ContextScopeVariables.alpRules.GetType().Name -eq "PSObject") { $global:ContextScopeVariables.alpRuleDropDown = @( $global:ContextScopeVariables.alpRules.Name ) } else { $global:ContextScopeVariables.alpRuleDropDown = $global:ContextScopeVariables.alpRules.Name } } [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Arrow) } Export-ModuleMember -Function * # SIG # Begin signature block # MIIoOwYJKoZIhvcNAQcCoIIoLDCCKCgCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAqGjC3ov2rW7Ro # lNn+kAVyJrv6hR3miBNEbwd//QMH5KCCDYUwggYDMIID66ADAgECAhMzAAADri01 # UchTj1UdAAAAAAOuMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjMxMTE2MTkwODU5WhcNMjQxMTE0MTkwODU5WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQD0IPymNjfDEKg+YyE6SjDvJwKW1+pieqTjAY0CnOHZ1Nj5irGjNZPMlQ4HfxXG # yAVCZcEWE4x2sZgam872R1s0+TAelOtbqFmoW4suJHAYoTHhkznNVKpscm5fZ899 # QnReZv5WtWwbD8HA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