How do I find my user name in order to install or activate my license?

6,131 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Mar 2022
Edited: MathWorks Support Team on 26 Oct 2021
When installing or activating an Individual license, your user name is required.  There are multiple ways to obtain your user name:
  • Command Prompt/Terminal
  • lmutil Utility
  • Activation Client
Command Prompt/Terminal
The easiest way to get your user name is from a command prompt or terminal:


To get your user name via the command prompt:
  1. Locate the search field. On Windows 7 this is in the Start Menu, and on Windows 10, this is in the Taskbar
  2. Enter "cmd" into the search field and type enter
  3. At the command prompt, enter the following command:
>set username


To get your user name, open a Terminal window:
  1. Open Finder.
  2. Open the Applications folder.
  3. Open the Utilities folder.
  4. Start the Terminal application.
  5. In the Terminal window, enter the following command:


To get your user name, open terminal and run the following command:
lmutil Utility
You can also get your user name by using the lmutil.exe utility. The lmutil utility is included when you install the network license manager using the MathWorks installer or the network license manager binaries.
You can run any of the following commands to determine your user name.


"C:\Program Files\MATLAB\R20XXx\etc\winXX\lmutil.exe" lmhostid -user
Your user name is displayed as “USER=<your_login_name>”


/Applications/ lmhostid -user
Your user name is displayed as “USER=<your_login_name>”


/usr/local/MATLAB/R2018b/etc/glnxa64/lmutil lmhostid -user
Your user name is displayed as “USER=<your_login_name>”
Activation Client
​If access to any of the other methods is not available, you can use the MATLAB activation client to determine what your user name is.
1. Open the MATLAB activation client. The activation client can be found in the following locations: 


  • C:\Program Files\MATLAB\R20XXX\bin\win64\activate_matlab.exe.

Mac OS

  • Use Finder to go to /Applications.
  • Control-click (right click) on the icon for your MATLAB version, such as .
  • In the menu, choose Show package contents.
  • In that directory, start the


  • /usr/local/MATLAB/R2018a/bin/
2. When the activation client is open: 
  • Click Activate Manually without the Internet and then click Next. 
  • Click I do not have a license file. Help me with the next steps. 
  • You will then see your user name as "Computer Login Name:<your_user_name>
Walter Roberson
Walter Roberson on 15 May 2022
On the other hand
who am i
with spaces, is a POSIX mandated utility, and MacOS keeps up to date on POSIX certification (nearly the only operating system that does.)

Sign in to comment.

More Answers (0)


Find more on Install Products in Help Center and File Exchange


No tags entered yet.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!