Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何限制 Windows 服务的行为?
在适当的帐户下运行服务。该服务没有什么特别之处——只是一个无需任何人以交互方式登录即可启动的程序。它的权限仅由运行它的用户帐户决定。
在服务属性中打开“登录”选项卡并将“登录为:”单选按钮更改为“此帐户”,然后提供用户名和密码。更改将在您重新启动服务时生效。