如何验证远程工作组用户&改变他们的密码uisng c#。 netapi32.dll(NetUserSetInfo& NetUserSetInfo)工作很少系统,但其他我们得到访问被拒绝 [英] How Validate remote Workgroup user & change their passwords uisng c#. netapi32.dll (NetUserSetInfo & NetUserSetInfo) works few system but others we are getting Access Denied

查看:114
本文介绍了如何验证远程工作组用户&改变他们的密码uisng c#。 netapi32.dll(NetUserSetInfo& NetUserSetInfo)工作很少系统,但其他我们得到访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了Windows服务。从我尝试使用NetUserGetInfo验证远程工作组用户。 如果用户有效,我使用NetUserSetInfo更改密码。 它工作的系统很少,但它不会工作其他系统,我得到Access Denied
错误。 可能是我在少数系统中获得Access Denied错误的原因。

I have created windows service. From i am trying to validate remote workgroup user using NetUserGetInfo.  If user is valid i change their password using NetUserSetInfo.  It works few systems but it wont work others, i am getting Access Denied error.  What might be the reason i am getting Access Denied error in few system.

推荐答案

如果您的用户是域的一部分,那么您必须是域管理员才能这样做。 您可能需要使用Active Directory界面来设置密码。
If your user is part of a domain, then you have to be a domain administrator to do this.  You may need to use the Active Directory interface to set the password.


这篇关于如何验证远程工作组用户&改变他们的密码uisng c#。 netapi32.dll(NetUserSetInfo& NetUserSetInfo)工作很少系统,但其他我们得到访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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