How to define a file group in windows file server resource manager with multiple file extensions.
Option 1: Create File Group Name Manually with Windows GUI
Go to FSRM File Screening Management.Select File Group.Create a file group with a name and included extensions (e.g., name: ‘malware files’, include file types: ‘”*.2xx9″, “*.73i87A”,).
In this case, adding each bulk file is very difficult.
Option 2: Create File Group Name and Add Multiple Extensions with Windows PowerShell
Using PowerShell
Run the following command to create the file group:
If this doesn’t work, follow the steps below:
Step-by-Step Guide
Step 1: Create the File Group Name Manually Using GUI
Refer to Option 1 for creating the file group named “malware files”.
Step 2: Define the File Group Name
Step 3: Define the New File Extensions and Patterns
Step 4: Get the Existing File Group
Step 5: Combine the Existing Patterns with the New Patterns
Step 6: Remove Duplicate Patterns
Step 7: Update the File Group with the Combined Patterns
That’s all!
Option 1: Create File Group Name Manually with Windows GUI Go to FSRM File Screening Management.Select File Group.Create a file group with a name and included extensions (e.g., name: ‘malware files’, include file types: ‘”*.2xx9″, “*.73i87A”,).In this case, adding each bulk file is very difficult.Option 2: Create File Group Name and Add Multiple Extensions with Windows PowerShellUsing PowerShellRun the following command to create the file group:powershell New-FsrmFileGroup -Name “malware files” -IncludePattern @(“*.2xx9”, “*.73i87A”)If this doesn’t work, follow the steps below:Step-by-Step GuideStep 1: Create the File Group Name Manually Using GUIRefer to Option 1 for creating the file group named “malware files”.Step 2: Define the File Group Name powershell $fileGroupName = “malware files” Step 3: Define the New File Extensions and Patterns powershell $newFilePatterns = @( “*.2xx9”, “*.73i87A”, “*.911”, “*.a”, “*.aaa”, “*.abc”, “*.AES256”, “*.asasin”, “*.avos”, “*.bat”, “*.better_call_saul”, “*.bloc”, “*.boost”, “*.btc” ) Step 4: Get the Existing File Group powershell $fileGroup = Get-FsrmFileGroup -Name $fileGroupName Step 5: Combine the Existing Patterns with the New Patterns powershell $combinedPatterns = $fileGroup.Patterns + $newFilePatterns Step 6: Remove Duplicate Patterns powershell $combinedPatterns = $combinedPatterns | Select-Object -Unique Step 7: Update the File Group with the Combined Patterns powershell Set-FsrmFileGroup -Name $fileGroupName -Include $combinedPatterns That’s all! Read More