ID()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return the machine and OS account name

Syntax

ID()

See Also

GETGID(), GETPID(), GETUID(), USER(), USERDOMAIN(), USERNAME(), USERROLES()

Description

The ID() function returns the computer name, a space, a hash (#), a space and then the OS account name of the current user.

Example

? id()
My-PC # Winuser