The pwrCURRENTUSER PowerUp function returns the name of the currently logged on user. If TRUE is passed, the network domain name is also included in the name returned.
The pwrCURRENTUSER PowerUp function has the following arguments:
TRUE – Optional. If passed, will cause the pwrCURRENTUSER PowerUp function to return the network domain name of the logged on user as part of the name.
pwrCURRENTUSER will return the name of the logged on user. The full name with the network domain will be return if pwrCURRENTUSER is called with TRUE as its only parameter.