问题标签 [win32serviceutil]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
53 浏览

python - Python windows服务抛出错误1053:服务没有及时响应启动或控制请求

大约4天前我问了一个问题。我没有得到答案。

在这里找到的问题。

Python 服务未在 windows 机器错误 1053 中启动

0 投票
0 回答
7 浏览

python-3.x - 使用 win32serviceutil 时可以指定“以用户身份连接”吗?

我运行许多不同的脚本进行健康检查,并通过 RPC 连接到多个系统以检查 Windows 服务和 MSMQ。过去,我只是默认使用自己的凭据进行连接。但是,在我们的新环境中,我需要以不同的管理用户身份连接到不同组中的各种系统。

那么,使用 win32serviceutil 我可以指定连接的凭据吗?我已经搜索了这方面的示例或信息,但一无所获。

目前我正在获得这样的 Windows 服务的状态:
service_status = win32serviceutil.QueryServiceStatus(service, machine=system)[1]

如果可能的话,我将如何添加用户信用。