Forum Discussion

ARUNKRISHNARR's avatar
ARUNKRISHNARR
Copper Contributor
Jun 05, 2024

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

 

  1. Go to FSRM File Screening Management.
  2. Select File Group.
  3. 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

    1. Run 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 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 $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!

No RepliesBe the first to reply

Resources