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.