MATLAB Answers

Why do I get Error Failed to add local user: "MATLABWebAppsGuest" while registering WebApp Service?

28 views (last 30 days)
I have installed Web App Server and while registering Web App Service, I am getting this error-
ERROR: The service command did not execute successfully with the following error: [Error] The account already exists.
[Error] Failed to add local user: "MATLABWebAppsGuest".
[Error] Failed to install the web app server.
There no option to unregister, only register option is available.
Also, start button is disabled, so I cannot start my webApps.
How can I fix this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Feb 2021
Edited: MathWorks Support Team on 4 Feb 2021
This error is thrown when there is a problem with registered user.
You are trying to register the same user who is already registered.
But there is some problem with already registered user.
A simple workaround would be to delete the existing user from "Users and Groups".
To do this in Windows- 
​1. Press the Win+R keys to open Run, type lusrmgr.msc into Run, and click/tap on OK to open Local Users and Groups.
2. Click/tap on Users in the left pane of Local Users and Groups. 
3. Delete the existing MATLABWebAppsGuest user.
Once user is removed, restart Web App Server.

More Answers (2)

Roberto M Sanchez
Roberto M Sanchez on 13 Feb 2020
I have a problem with registration. In my case, the server have been working several weeks but suddenly is unable to run.
The error I get is the following:
"The service command did not execute successfully with the following error: [SC] StartService: OpenService
Error 5:
Access denied
I have reinstall the web app server utility and deleted the default user but the error persits.
Any clue?

  1 Comment

Sam Cook
Sam Cook on 24 Feb 2020
This is typically caused by an issue with user permissions. Check that the program is being run with administrator privileges, either by logging in as the correct user or explicitly starting the executable with admin permissions.
If you continue to have issues, I would check with your IT department before submitting a help ticket.
Hope this helps!

Sign in to comment.




Community Treasure Hunt

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

Start Hunting!

Translated by