Forum Discussion
ARUNKRISHNARR
Jun 05, 2024Copper Contributor
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:
powershellNew-FsrmFileGroup -Name "malware files" -IncludePattern @("*.2xx9", "*.73i87A")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
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 $fileGroupNameStep 5: Combine the Existing Patterns with the New Patterns
powershell$combinedPatterns = $fileGroup.Patterns + $newFilePatternsStep 6: Remove Duplicate Patterns
powershell$combinedPatterns = $combinedPatterns | Select-Object -UniqueStep 7: Update the File Group with the Combined Patterns
powershellSet-FsrmFileGroup -Name $fileGroupName -Include $combinedPatternsThat's all!
- Refer to Option 1 for creating the file group named "malware files".
No RepliesBe the first to reply