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.
$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.
18.217.144.32