m-dwyer / CryptoBlocker

A script to deploy File Server Resource Manager and associated scripts to block infected users
GNU General Public License v2.0
53 stars 103 forks source link

Fixing 4kb+ FileGroup length issue with filescrn.exe calls #14

Open Kittzus opened 8 years ago

Kittzus commented 8 years ago

Adding a new function 'New-CBArraySplit' to split the downloaded extensions into FileGroups of less than 4KB in length, and then create and add these FileGroups to the File Screen Template. Tested with up to 10x current length of JSON list, seems to work fine.

ynad commented 2 years ago

Adding a new function 'New-CBArraySplit' to split the downloaded extensions into FileGroups of less than 4KB in length, and then create and add these FileGroups to the File Screen Template. Tested with up to 10x current length of JSON list, seems to work fine.

Manually merged with edits suggested by @Kittzus in commit 7c854d0, (thanks!!); tested and working on Windows Server 2019.

The only warning thrown was about "filescrn.exe": This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.