Get Windows User Name in LabVIEW

Updated Jan 8, 2019

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

How can I get the current Windows User Name in LabVIEW?

Solution

If you are looking for just the Windows user name then the following code will be suffice: 


If you would like to include the domain as well in the resulting string then the following code will be best: