First of all the script is great and giving us great protection on our servers, butt i ran into an issue for us where we would like to use Exclude.txt butt not whitelist all extensions on these specified file paths. So I modified the script that the file paths in Exclude.txt only use a particular filescreen with only an select number of extensions. I'm just starting powershelling and would like your opinion about my modifications.
First of all the script is great and giving us great protection on our servers, butt i ran into an issue for us where we would like to use Exclude.txt butt not whitelist all extensions on these specified file paths. So I modified the script that the file paths in Exclude.txt only use a particular filescreen with only an select number of extensions. I'm just starting powershelling and would like your opinion about my modifications.
You can view the code at my fork: https://github.com/scholtefrl/CryptoBlocker Lines 307 to 349
I pasted the code here butt it was not really readable