MATLAB Answers


Why do I receive the error "OpenSCManager failed" when installing the MATLAB Distributed Computing Server Service?

When installing the MDCS service on Windows, I run the following command:
mdce install
In the Windows Command prompt I receive an error :
wrapper | OpenSCManager failed - Access is denied. (0x5)
Script mdce unable to complete successfully - exiting
This seems to be related to to admin privileges. I am an administrator so I should be able to install the service.


No tags entered yet.




1 Answer

Answer by MathWorks Support Team on 17 May 2010
 Accepted Answer

This is a common issue on Windows Vista and higher. Due to the User Access Control (UAC) feature in Windows, even if you are logged in as an administrator by default you do not have administrative privileges when an application by default. To run an application in an administrative mode, you will have to right click on the application icon and select "Run as an administrator".
To workaround the issue, you will need to open the Windows Command prompt as an Administrator. To so so, locate the shortcut to the Command prompt in the Start menu under Accessories. To run as Administrator, right click on the shortcut and select the option "Run as Administrator". If successful, the title for the command prompt should say "Administrator: Windows Command Processor." If so, run the "mdce install" command from the Administrator's Command prompt to install the service.


Sign in to comment.