{"id":1881,"date":"2016-05-04T17:37:01","date_gmt":"2016-05-04T17:37:01","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1881"},"modified":"2018-09-06T23:20:51","modified_gmt":"2018-09-06T23:20:51","slug":"file-screening-via-de-commandline","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1881","title":{"rendered":"File Screening via de commandline"},"content":{"rendered":"<p>Filescreening is a method used to control what files can be placed in a directory. You might want to prevent storage of MP3 files or executables.<\/p>\n<p>I wil use an example to explain how to create filescreen rules by using the commandline.<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>I have created the folder E:\\Users to store the users&#8217; homeshares, but I want to prevent them to store .pst files. Therefor I execute the following steps.<\/p>\n<h2>1. Create a File Group<\/h2>\n<p>I define a filegroup called PST that contains the .pst files.<\/p>\n<p>FileScrn filegroup add \/filegroup:PST \/Nonmembers:&#8221;*.pst&#8221;<\/p>\n<p>In the management console File Server Resource Manager it looks like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.zeda.nl\/images\/ZEDA\/011a_file_screening_voorbeeld_file_group.png\" alt=\"\" border=\"0\" \/><\/p>\n<h2>2. Create a File Screen Template<\/h2>\n<p>The File Screen Template is created so the same settings can be used on multiple folders.<\/p>\n<p>FileScrn template add \/template:&#8221;BlockPst&#8221; \/Type:Active \/add-filegroup:Pst<\/p>\n<p>This command creates the template BlockPst.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.zeda.nl\/images\/ZEDA\/011b_file_screening_voorbeeld_file_screen_template.png\" alt=\"\" border=\"0\" \/><\/p>\n<h2>3. Create the File Screen<\/h2>\n<p>All we have to do now is create the actual File Screen using the following command:<\/p>\n<p>FileScrn screen add \/path:E:\\Users \/SourceTemplate:BlockPst<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.zeda.nl\/images\/ZEDA\/011c_file_screening_voorbeeld_file_screen.png\" alt=\"\" border=\"0\" \/><\/p>\n<p><strong>TIP:<\/strong> You can even add File Screens on a remote computer using the option \/Remote:MACHINE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Filescreening is a method used to control what files can be placed in a directory. You might want to prevent storage of MP3 files or executables. I wil use an example to explain how to create filescreen rules by using the commandline. Example I have created the folder E:\\Users to store the users&#8217; homeshares, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6,48],"tags":[],"class_list":["post-1881","post","type-post","status-publish","format-standard","hentry","category-general-2003-stuff","category-general-2008","category-microsoft-windows-server-2012"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1881"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1881\/revisions"}],"predecessor-version":[{"id":1882,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1881\/revisions\/1882"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}