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

File screen not being created - Filescrn command not working? #13

Open timwiserairit opened 8 years ago

timwiserairit commented 8 years ago

We're seeing the script fail to create the file screen group when we run it. I've dug into the script and suspect that the FILESCRN.EXE ADD command is not liking the list of extensions that it's being passed. The server that this is being run on is running Server 2008 with PowerShell 4.0, which I believe is supported?

_This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell he FileServerResourceManager module to administer File Server Resource Manager functionality. The parameter is incorrect.

Add new file groups.

The syntax of this command is:

Filescrn Filegroup Add /Filegroup:FG_NAME /Members:"MEMBERS" [/Nonmembers:"NONMEMBERS"] [/Remote:MACHINE]

/Filegroup:FG_NAME Add file group with name FG_NAME.

/Members:"MEMBERS" Configure file group member patterns. MEMBERS is a list of file name patterns separated by '|'.

/Nonmembers:"NONMEMBERS" Configure file group non-member patterns. NONMEMBERS is a list of file name patterns separated by '|'.

/Remote:MACHINE Perform the operation on machine MACHINE.

Example: Filescrn Filegroup Add /Filegroup:"Log Files" /Members:".log|.history"__

nreisbeck commented 8 years ago

This is a duplicate of #12 and should be closed as such.