Get a Specific Blocked File Type


Scenario/Problem: You need to obtain a specific trusted file location reference.


Solution: Use the Get-SPExcelBlockedFileType cmdlet to assign a variable the results using the -Identity and -ExcelServiceApplication parameters.

Providing the identity of the blocked file type to the Get-SPExcelBlockedFileType cmdlet retrieves a specific blocked file type instance. Use this to assign the results to a variable for use in other cmdlets, as shown in Listing 21.15.

Listing 21.15. Assigning a Variable to a Specific Blocked File Type


$blockedFileType = Get-SPExcelBlockedFileType
-Identity "XLSB" -ExcelServiceApplication "Excel Services Application"



Tip

When you are creating a new blocked file type, the Identity becomes the same value as the File Type property.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.144.32