Find which account a service is set to “Log On As”

后端 未结 3 1305
悲&欢浪女
悲&欢浪女 2021-01-17 23:23

How to find out the user account (Local System/User etc) a service is set to run under (\"Log On As\")?

Unlike this similar question this code can\'t run from within

3条回答
  •  难免孤独
    2021-01-17 23:51

    How about using WMI and the Win32_Service class with the StartName parameter?

    This article might help.

提交回复
热议问题