标签: c# .net windows
我需要在部署时为我的应用程序创建用户。我想阻止其他人登录此用户。如何使用c#?
换句话说,如何为该用户设置SeDenyInteractiveLogonRight?
SeDenyInteractiveLogonRight
答案 0 :(得分:1)
您正在寻找的功能是LsaAddAccountRights。
LsaAddAccountRights
答案 1 :(得分:-1)
如果您的帐户属于Windows域名: