小编eli*_*hen的帖子

如何创建本地 Windows 桌面服务帐户?

题:

在 Windows Home / Professional (Windows 10) 中,创建本地服务帐户的推荐方法是什么?

有没有这方面的文件?(Powershell、GUI 等)。

说明:这不是 Active Directory 问题——或 Windows 服务管理帐户问题——仅限桌面。

语境:

Bittorent 的 BTSync 安装提示选择作为本地 Windows 服务启动。

在安装过程中,它会提示您输入本地服务帐户的用户名和密码。

就像在 Linux ... 中一样:

在 Linux 中,我通常会使用 useradd,并将帐户与适当的组相关联:

useradd -M btsync
usermod -L btsync
Run Code Online (Sandbox Code Playgroud)

注意:-r 用于在 Linux 中创建服务帐户,但它是否禁用登录似乎不一致 - 并且未记录,(man 链接)。

不会创建主目录,登录将被禁用,

windows services user-accounts powershell windows-services

5
推荐指数
1
解决办法
9010
查看次数