FileType

Gets or sets the type of executable file to match to identify the Windows application associated with this right. You must specify a file type to define a valid application right.

Syntax

WindowsFileType FileType {get; set;}

Property value

The executable file type to match.

Possible values:

public enum WindowsFileType
{
     // Batch file
        BAT,
     // Command script
        CMD,
     // Command file
        COM,
     // Control Panel Extension
        CPL,
     // Executable file
        EXE
     // Microsoft common console document
        MSC
     // Windows installer package
        MSI
     // Windows installer patch
        MSP
     // Windows PowerShell cmdlet
        PS1
     // VBScript script
        VBS
     // Windows script file
        WSF
}

Example

The following code sample illustrates using FileType in a script:

$objWindowsApplication = $objZone.GetWindowsApplication($strWindowsApplication);
{
...
 $listType = $listType.MakeGenericType( @ ("Centrify.DirectControl.API.IWindowsApplicationCriteria" -as "Type")));
    $criteriaList = [Activator]::CreateInstance($listType);
    $objApplicationCriteria = $objWindowsApplication.CreateApplicationCriteria();
    $objApplicationCriteria.FileType = [Centrify.DirectControl.API.WindowsFileType]::EXE;
    $objApplicationCriteria.FileName = "filename.exe";
...
}