Internet and Network Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network >

Internet and Network Commands

GUD. - Get User and Domain

Previous Top Next


MiniRobotLanguage (MRL)

 

GUD. Command

Get User and Domain 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.

 

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

 

If you run GUD. 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 damain information will be on the stack, and the user name in the provided variable. The stack will then look like this.

 

graphic

 

If you provide two variables, both values will be in the variables instead then on the stack.

 

 

 

Syntax

 

 

GUD.[P1][|P2]

 

 

Parameter Explanation

 

P1  -  (optional) Variable for the user name. If omitted TOS

   is used.

 

P2  -  (optional) variable for the domain/pc name. If omitted TOS

   is used.

 

 

 

 

Example

 

' Show GUN. -Get User Name Command

STS.LOCAL

STS.CLEAR

 

GUD.$$USR

STS.DUMP

MBX. User is: $$USR

ENR.

 

 

 

Remarks

 

Uses internally another system then GUN.

 

 

 

Limitations:

-

 

 

 

See also:

 

    GIP. - Get IP Adress

    GCN. - Get Computer Name

    GUN. - Get User Name

    GPU. - Get Process User