MATLAB Answers

How do I find my User Name in order to activate my license?

5,171 ビュー (過去 30 日間)
When I try to activate my license, it asks for my User Name. How do I find this?

採用された回答

MathWorks Support Team
MathWorks Support Team 2019 年 2 月 21 日
編集済み: MathWorks Support Team 2019 年 2 月 21 日
To find your User Name, follow the instructions below for your operating system.
Windows
The fastest way to get your User Name is from a Windows Command Prompt:
  • Locate the search field. On Windows 7 this is in the Start Menu, on Windows 8/8.1 this is on the Start Screen, and on Windows 10 this is in the Taskbar
  • Enter "cmd" into the search field and type enter
In the Command Prompt, enter the following command:
set username
MacOS
To obtain your User Name, open a Terminal window:
  • Open Finder
  • Open the "Applications" folder
  • Open the "Utilities" folder
  • Start the "Terminal" application
In the Terminal window, enter the following command:
whoami
Linux
To obtain your User Name, open Terminal and run the following command:
whoami
The User Name can also be obtained by using the lmutil.exe utility included with the MATLAB installation. You can run the following commands to determine the User Name needed for activation:
Windows:
"C:\Program Files\MATLAB\R20XXx\etc\winXX\lmutil.exe" lmhostid -user
The User Name will be displayed as “USER=_<your_login_name>”
_
Mac:
/Applications/MATLAB_R20XXx.app/etc/maci64/lmutil lmhostid -user
The User Name will be displayed as “USER=_<your_login_name>”
_
Linux:
/usr/local/MATLAB/R2018b/etc/glnxa64/lmutil lmhostid -user
The User Name will be displayed as “USER=_<your_login_name>”
_
If access to the command window is not available, you can use the MATLAB activation client to determine what your Login Name is. To do this, you will need to first 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:
Use Finder to go to /Applications . From there, control-click (right click) on the icon for your MATLAB version, such as MATLAB_R2015b.app . In the menu, choose "Show package contents". In that directory, you will find an Activate.app.
Linux:
/usr/local/MATLAB/R2018a/bin/activate_matlab.sh
Once the activation client is open,
  • Click on “_Activate Manually without the Internet” _and click next.
  • Click on “_I do not have a license file. Help me with the next steps”_
  • On this screen you will see your Login Name: “_Computer Login Name:<your_login_name>”_

その他の回答 (3 件)

Amy Diekmann
Amy Diekmann 2017 年 1 月 19 日
I entered an incorrect login name. How do I correct it?

  9 件のコメント

表示 6 件の古いコメント
Lise Lynen
Lise Lynen 2019 年 6 月 19 日
When I go through the activation process all over again and add my license file, it never asks for the user name and says everything is activated.
When I try to launch Matlab however, it shows me the -9 error saying the username is incorrect. Can someone help me on this? How do I change the username? And why is it incorrect because I was never asked to input a username, I just added to path to my license file.
Colin Fraser
Colin Fraser 2019 年 6 月 19 日
Lise,
If you added the path a license file, its possible that license file had an incorrect username set to it. You would need to reactivate again from the website with the correct username.
If you need further assistance, please contact MathWorks support:
-Colin
Prasanna Mhapsekar
Prasanna Mhapsekar 2020 年 12 月 7 日
if you are using Linux, avoid using "sudo ./matlab" to launch the application, instead just use "./matlab"

サインインしてコメントする。


swaraj kanwar
swaraj kanwar 2018 年 3 月 23 日
how i get my activation key for licence

John Zhuang
John Zhuang 2018 年 10 月 24 日
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!

  1 件のコメント

Sam Mason
Sam Mason 2019 年 5 月 23 日
This saved me, thank you!

サインインしてコメントする。

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by