Files: File Blocking

Selective File Blocking

In this exercise you will configure Files to block specific file extensions for the file server and the Marketing share.

  1. In Prism > File Server > Select your file server and click Update > then click Blocked File Types

    ../../_images/471.png
  2. Under Blocked File Types enter a comma separated list of extensions like .flv,.mov and click Save

    ../../_images/481.png
  3. Open a PowerShell window by clicking on the PowerShell icon on the taskbar. Enter the following command where you will see an access denied error message:

    new-item \\xyz-files.ntnxlab.local\marketing\MyMovie.flv
    
    ../../_images/49.png
  4. In Prism > File Server > Share/Export > click on the Marketing share and select Update

    ../../_images/50.png
  5. Select Next to get to the Settings page.

  6. Check Blocked File Types and enter .none as a file extension.

    ../../_images/511.png
  7. Select Next then Save on the Summary page to complete the update.

  8. Blocked file type settings at the share level override the server level setting. Using PowerShell issue the same command as the previous step. The command will now complete successfully.

    ../../_images/521.png