使用 powershell,我如何授予“作为服务登录"的权限?到一个帐户? [英] Using powershell, how do I grant "Log on as service" to an account?

查看:29
本文介绍了使用 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?

推荐答案

这是一个您也可以在 PS 中执行的链接:原文 |已存档.

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.

这篇关于使用 powershell,我如何授予“作为服务登录"的权限?到一个帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆