RunAsType

Gets or sets the run-as type for this right.

Syntax

WindowsRunAsType RunAsType {get; set;}

Property value

The run-as type of the right.

Possible values:

public enum WindowsRunAsType  
{  
    // Run as self
    Self,  
    // Run as another user
    User  
}

Discussion

If the RunAsType property is set to Self, the remote application runs as the logged-in user with the additional privileges of the groups whose SIDs are listed in the RunAsListproperty. For example, if the NetworkAccess right is set to run as Self and RunAsList contains the SID of the Network Admins group, then this application runs with the permissions of the logged-in user plus the permissions of the Network Admins group.

If the RunAsType property is set to User, the application is run as the user whose SID is listed in the RunAsList property. For example, if the NetworkAccess right is set to run as User and RunAsList contains the SID of the user NetAdmin, then this application runs as NetAdmin with the permissions of that user.