Post

RunAs Issue? Check Secondary Logon Service.

On Windows if you are having problems trying to perform an action as a different user via the RunAs command then it might be due to the ‘Secondary Logon Service’ not running. I recently had this problem on Windows Server and after some investigations found that the ‘Secondary Logon Service’ had been disabled, starting the service resolved the issue. By default it is set to ‘Manual’.

The error you get from the RunAs command may vary depending on OS version but will report a problem running a process or service. This is the error I get on Windows 10:

1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

This post is licensed under CC BY 4.0 by the author.
{"cc_re__cc_re__cc_by_4_0": ["ted\"><div class=\"post-meta mb-3\"> <i class=\"far fa-folder-open fa-fw me-1\"></i> <a href=\"/categories/miscellaneous/\" >Miscellaneous</a ></div><div class=\"post-tags\"> <i class=\"fa fa-tags fa-fw me-1\"></i> <a href=\"/tags/tips/\" class=\"post-tag no-text-decoration\" >Tips</a> <a href=\"/tags/windows/\" class=\"post-tag no-text-decoration\" >Windows</a></div><div class=\"post-tail-bottom d-flex justify-content-between align-items-center mt-5 pb-2\" ><div class=\"license-wrapper\"> This post is licensed under <a href=\"https://creativecommons.org/licenses/by/4.0/\"> CC BY 4.0 </a> by the author.</div><div class=\"share-wrapper d-flex align-items-center\"> <span class=\"share-label text-muted\">Share</span> <span class=\"share-icons\"> <a href=\"https://twitter.com/intent/tweet?text=RunAs%20Issue?%20Check%20Secondary%20Logon%20Service.%20-%20RichHewlett.com&url=https%3A%2F%2Frichhewlett.com%2F2019%2F06%2F02%2Frunas-issue-check-secondary-logon-service%2F\" target=\"_blank\" rel=\"noopener\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"Twitter\" aria-label=\"Twi"], "copyright__copyright__copyright": ["e investigations found that the \u2018Secondary Logon Service\u2019 had been disabled, starting the service resolved the issue. By default it is set to \u2018Manual\u2019.\n\nThe error you get from the RunAs command may vary depending on OS version but will report a problem running a process or service. This is the error I get on Windows 10:\n\n1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.\n\nThis post is licensed under CC BY 4.0 by the author.", "e investigations found that the \u2018Secondary Logon Service\u2019 had been disabled, starting the service resolved the issue. By default it is set to \u2018Manual\u2019.\n\nThe error you get from the RunAs command may vary depending on OS version but will report a problem running a process or service. This is the error I get on Windows 10:\n\n1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.\n\nThis post is licensed under CC BY 4.0 by the author."]}