使用 powershell,我如何授予“作为服务登录"的权限?到一个帐户?
问题描述:
我正在尝试使用 powershell 配置帐户凭据,但我需要授予帐户作为服务登录"的权限才能使其正常工作.如何在 powershell 中执行此操作?
I'm trying to use powershell to configure the account credentials, but I need to grant the account "Log on as a service" right in order for it to work. How can I do this in powershell?
答
Here's a link that you could also do within PS: original | archived.
问题是实际上并没有任何公共 API 来管理这些设置,因此您在使用 ResKits 中提供的命令行工具时会遇到一些困难.
The problem is that there aren't really any public APIs for managing these settings, so you're a bit stuck using command-line tools provided in ResKits.