Start/Stop service from an ASP . NET page

后端 未结 2 1480
长发绾君心
长发绾君心 2021-01-13 23:00

I implemented a web page (ASP .NET, VB) to start/stop a Windows service.

I used impersonification, as described here: http://support.microsoft.com/kb/306158

2条回答
  •  渐次进展
    2021-01-13 23:15

    In my case, both LOGON32_LOGON_INTERACTIVE and LOGON32_LOGON_SERVICE don't work.

    However, LOGON32_LOGON_NETWORK works for me. Note that the user has admin privilege therefore is able to start/stop the windows service.

提交回复
热议问题