Internet and Network Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network >

Internet and Network Commands

SID. - Security Identifier

Previous Top Next


MiniRobotLanguage (MRL)

 

SID. Command

Get Security Identifier* for actual or any User Name

 

 

Intention

 

Get the SID (Security Identifier)*of the current or any given User as Text String.

 

 

Example SID: S-1-5-21-435374019-1570027373-1801674531-1013

 

Usage is simple:

 

' Print current user SID as Text

SID.

DBP.$$000

ENR.

 

' Print Guest User SID

$$NAM=MYPC\Guest

SID.$$NAM

DBP.$$000

ENR.

 

' Print Guest User SID, use Variable for Result

$$NAM=MYPC\Guest

SID.$$NAM|$$RES

DBP.$$RES

ENR.

 

 

*Security Identifier (commonly abbreviated SID) is a unique, immutable identifier of a user, user group, or other security principal.

A security principal has a single SID for life, and all properties of the principal, including its name, are associated with this SID.

This allows a principal to be renamed (for example, from "UserB" to "User21", without affecting the security attributes of objects that refer to the principal.

 

 

 

Syntax

 

 

SID.[P1][|P2]

 

 

Parameter Explanation

 

P1  -  (optional) Name of User to return the SID from. If omitted,

   current user is taken.

P2  -  (optional) Variable for the result.

 

 

 

 

Example

 

' Print Guest User SID, use Variable for Result

$$NAM=MYPC\Guest

SID.$$NAM|$$RES

DBP.$$RES

ENR.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    GIP. - Get IP Adress

    GCN. - Get Computer Name

    GUD. - Get User and Domain

    GPU. - Get Process User