RunAs

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

Syntax

string RunAs {get; set;}

Property value

The run-as property for a single user.

Discussion

If the RunAsType property is set to Self, the remote application is run under the logged-in user account, but with the additional privileges of the groups whose SIDs are listed in the RunAs property as a semicolon (;) separated string. For example, if the WindowsDesktop right is set to run as Self and RunAs 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 remote application is run under the user whose SID is listed in the RunAs property. For example, if the WindowsDesktop right is set to run as User and RunAs contains the SID of the user NetAdmin, then this application runs with the permissions of the NetAdmin user.

If the RunAs property is empty, this right is invalid and an exception is thrown when you call the Commit method.

This property is for use in VBScript programs. Use the RunAsList property for .NET.