Remote SC OpenSCManager failed 5 access denied

[SC] OpenSCManager FAILED 5: Access is denied.

or above error might arrive on SC manager for any operation like Start or Stop or Delete of a given service.

SC Start
Remote SC OpenSCManager failed 5 access denied

SC DELETE

Remote SC OpenSCManager failed 5 access denied

Resolution

Running services.msc commands for Windows service require Admin privileges.

Its recommended to get Admin access to execute these commands.

Kindly run your CLI/Command prompt in Admin Mode to fix the issue.

Remote SC OpenSCManager failed 5 access denied

Once done you shall see all the commands working !

Remote SC OpenSCManager failed 5 access denied

References:

Do you have any comments or ideas or any better suggestions to share?

Please sound off your comments below.

Happy Coding !!



Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.



2 thoughts on “Remote SC OpenSCManager failed 5 access denied

  1. This solution doesn’t work most of the time because anyone who doesn’t know about run as administrator shouldn’t and wouldn’t be messing around with services.
    It shouldn’t even be listed as solved.
    This solution could do more damage than good.

    1. Hi Babak- Thanks for your comments!. Agree. The above option is for those who have admin access. Many times even though if developer has admin access, they may still get this error. In such cases Command prompt should be open as Administrator.

Leave a Reply

Your email address will not be published. Required fields are marked *