Skip to content

Commit

Permalink
Merge pull request #2047 from microsoft/dpaul-EpRevert
Browse files Browse the repository at this point in the history
Add back multi server support for Text Extraction Override
  • Loading branch information
dpaulson45 authored Mar 19, 2024
2 parents ebea8a2 + fe7de45 commit 4e7589f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@

[CmdletBinding(DefaultParameterSetName = "ConfigureOverride", SupportsShouldProcess = $true, ConfirmImpact = 'High')]
param(
[Parameter(Mandatory = $false, ValueFromPipeline, ParameterSetName = "ConfigureOverride")]
[Parameter(Mandatory = $false, ValueFromPipeline, ParameterSetName = "Rollback")]
[string[]]$ExchangeServerNames,

[Parameter(Mandatory = $false, ParameterSetName = "ConfigureOverride")]
[Parameter(Mandatory = $false, ParameterSetName = "Rollback")]
[string[]]$SkipExchangeServerNames,

[Parameter(Mandatory = $true, ParameterSetName = "ConfigureOverride")]
[ValidateSet("OutsideInModule", "XlsbOfficePackage", "XlsmOfficePackage", "XlsxOfficePackage", "ExcelStorage" , "DocmOfficePackage",
"DocxOfficePackage", "PptmOfficePackage", "PptxOfficePackage", "WordStorage", "PowerPointStorage", "VisioStorage", "Rtf",
Expand Down
14 changes: 14 additions & 0 deletions docs/Security/ConfigureFipFsTextExtractionOverrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,24 @@ This syntax enables processing of `Jpeg` and `AutoCad` file types by the help of
.\ConfigureFipFsTextExtractionOverrides.ps1 -ConfigureOverride "Jpeg", "AutoCad" -Action "Allow"
```

This syntax disables processing of `Jpeg` and `AutoCad` file types by the help of the `OutsideInModule` on the server `ExchangeSrv01` and `ExchangeSrv02`.

```powershell
.\ConfigureFipFsTextExtractionOverrides.ps1 -ExchangeServerNames ExchangeSrv01, ExchangeSrv02 -ConfigureOverride "Jpeg", "AutoCad" -Action "Block"
```

This syntax causes Exchange Server to use the previous version of the `OutsideInModule`. The override will be enabled on the system on which the script was executed. Note that this can make your system vulnerable to known vulnerabilities in the previous version and should not be used unless explicitly advised by Microsoft.

```powershell
.\ConfigureFipFsTextExtractionOverrides.ps1 -ConfigureOverride "OutsideInModule" -Action "Allow"
```

This syntax disables the override of the version of the `OutsideInModule` module on the server `ExchangeSrv01` and `ExchangeSrv02`.

```powershell
.\ConfigureFipFsTextExtractionOverrides.ps1 -ExchangeServerNames ExchangeSrv01, ExchangeSrv02 -ConfigureOverride "OutsideInModule" -Action "Block"
```

This syntax restores the `configuration.xml` from the backup that was created by a previous run of the script on the Exchange server where the script was executed.

```powershell
Expand All @@ -51,6 +63,8 @@ This syntax restores the `configuration.xml` from the backup that was created by

Parameter | Description
----------|------------
ExchangeServerNames | A list of Exchange servers that you want to run the script against.
SkipExchangeServerNames | A list of Exchange servers that you don't want to execute the configuration action.
ConfigureOverride | A list of file types that should be allowed to be processed by the `OutsideInModule`. The following input can be used: `XlsbOfficePackage`, `XlsmOfficePackage`, `XlsxOfficePackage`, `ExcelStorage`, `DocmOfficePackage`, `DocxOfficePackage`, `PptmOfficePackage`, `PptxOfficePackage`, `WordStorage`, `PowerPointStorage`, `VisioStorage`, `Rtf`, `Xml`, `OdfTextDocument`, `OdfSpreadsheet`, `OdfPresentation`, `OneNote`, `Pdf`, `Html`, `AutoCad`, `Jpeg`, `Tiff`.<br><br>If you want to enable the previous version of the `OutsideInModule` (`8.5.3`) to process file types, you must specify `OutsideInModule` as file type. Note that the `OutsideInModule` value cannot be used together with other file type values.<br><br>The input is case-sensitive.
Action | String parameter to define the action that should be performed. Input can be `Allow` or `Block`. The default value is: `Block`
Rollback | Switch parameter to restore the `configuration.xml` that was backed-up during a previous run of the script.
Expand Down

0 comments on commit 4e7589f

Please sign in to comment.