Navigation: Function Index > C > CVAL
USERDOMAIN
(CVAL('USERDOMAIN'))
Returns the name of the logged-in network domain. If the computer is not logged into a domain, the return value will be NULL.