Internet and Network Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network >

Internet and Network Commands

GUN. - Get-User-Name

Previous Top Next


MiniRobotLanguage (MRL)

 

GUN. Command

Get User Name

 

 

Intention

 

Get the name of the user that is actually running your script. When using the

1.1 '#RAU: - Run As User it may be a good idea to find out, if the script really got the proper user.

GUN. provides you this information. It shows you, which user runs the actual script.

If you run GUN. without a parameter, the stack will get the information like in the picture below.

 

graphic

 

If you provide a variable for the User-Name, the user name will not be on the stack, but in this variable. The stack will then look like this.

 

graphic

 

 

 

Syntax

 

 

GUN.[P1][|P2]

 

 

Parameter Explanation

 

P1  -  (optional) Variable for the result.

 

P2  -  (optional) the letter N, then another Algo is used.

 

 

 

 

Example

 

' Show GUN. -Get User Name Command

STS.LOCAL

STS.CLEAR

 

GUN.

' show Actual Stack

DMP.6

MBX. Sample 1

 

STS.CLEAR

GUN.$$RES

' show Actual Stack

DMP.6

MBX. Sample 2, Name is $$RES

 

ENR.

 

 

 

Remarks

 

-

 

 

Limitations:

-

 

 

 

See also:

 

    SID. - Security Identifier

    GIP. - Get IP Adress

    GCN. - Get Computer Name

    GUD. - Get User and Domain

    GPU. - Get Process User