As a domain administrator, you will find sometimes you need set up file screens on specific folders however not all of them.

In my case, I need setup video & audio screens on students shared folder but not the teacher`s one on the same level, so simply set it up on root folder not suit this case.

Here is what I did to only set it up on the related folders. 

1. Use command line dir to get the folder menu

cd destinationfolder
dir *keyword* /s /b > foldersNeedScreens.csv

 

2. Create a file screening template for the specified folders. Before that, create file groups:

In my case I have included most video files, zip files, ISOs and game files

3. Create file screen template with the created file group.

screenTemplate

 

4. Now  POWERSHELL, save following as SetScreens.ps1 and run it in POWERSHELL:

 

$FolderList = import-csv <csvFolder>\export.csv -header FolderPath
Foreach ($Folder in $FolderList)
{ 
New-FsrmFileScreen -Path $Folder.FolderPath -Template "GameVideoZipISO"
}

 

 

 

 

About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.

THERE IS NO WAY BACK!!!

Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

Today45
Yesterday83
This week669
This month1965
Total416325

Visitor Info

  • IP: 54.163.210.170
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

2
Online

2017-12-17

Login