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

7,290 views (last 30 days)
When I try to activate my license, it asks for my user name. How do I find this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Mar 2022
Edited:MathWorks Support Team 2021年10月26日
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:

Windows

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
USERNAME=myusername

MacOS

To get your user name, open a Terminal window:
  1. OpenFinder.
  2. Open theApplicationsfolder.
  3. Open theUtilitiesfolder.
  4. Start the Terminal application.
  5. In the Terminal window, enter the following command:
%whoami
myusername

Linux

To get your user name, open terminal and run the following command:
%whoami
myusername
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 orthe network license manager binaries.
You can run any of the following commands to determine your user name.

Windows

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

MacOS

/Applications/MATLAB_R20XXx.app/etc/maci64/lmutil lmhostid -user
Your user name is displayed as “USER=

Linux

/usr/local/MATLAB/R2018b/etc/glnxa64/lmutil lmhostid -user
Your user name is displayed as “USER=
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:

Windows

  • 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 MATLAB_R2020a.app .
  • In the menu, chooseShow package contents.
  • In that directory, start the Activate.app.

Linux

  • /usr/local/MATLAB/R2018a/bin/activate_matlab.sh
2. When the activation client is open:
  • ClickActivate Manually without the Internetand then clickNext.
  • ClickI do not have a license file. Help me with the next steps.
  • You will then see your user name as "Computer Login Name:
7 Comments
Walter Roberson
Walter Roberson on 15 May 2022
Interesting.
On the other hand
whoam 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 (7)

Amy Diekmann
Amy Diekmann on 19 Jan 2017
I entered an incorrect login name. How do I correct it?
9 Comments
Prasanna Mhapsekar
Prasanna Mhapsekar 2020年12月7日
if you are using Linux, avoid using "sudo ./matlab" to launch the application, instead just use "./matlab"

Sign in to comment.


John Zhuang
John Zhuang on 24 Oct 2018
This answer is very helpful. I was unable to activate MatLab on my borrowed laptop. I kept typing "Student User" for my user name and MatLab kept yelling at me for being the wrong user. Tried "set username" and found that my ACTUAL user name was "Administrator". Tried that and it works!

swaraj kanwar
swaraj kanwar on 23 Mar 2018
how i get my activation key for licence

Rodolfo Marin Quintero
Rodolfo Marin Quintero on 16 Mar 2022
"Administrator" actually worked for me... win10
2 Comments
Walter Roberson
Walter Roberson on 8 Aug 2022
Sorry, the volunteers who answer questions here do not have access to the license database. You will need to contact Mathworks Support.

Sign in to comment.


Venkatesh Huilgol
Venkatesh Huilgol on 6 Sep 2022
Dear sir/ Madam
Sub: you will go to matwork login find the name you show details account sir
1 Comment
Jestzer
Jestzer on 25 Apr 2023 at 16:16
This answer talks about the login name used for activation, which is the login name you're using on your local computer, not mathworks.com. Unless you've already successfully and correctly done this with MATLAB or online AND you are using an Individual license, it's not going to show up in your MathWorks account.

Sign in to comment.



Categories

Find more onInstall ProductsinHelp CenterandFile Exchange

Tags

No tags entered yet.

下载188bet金宝搏

Community Treasure Hunt

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

Start Hunting!