locked
How Validate remote Workgroup user & change their passwords uisng c#. netapi32.dll (NetUserSetInfo & NetUserSetInfo) works few system but others we are getting Access Denied RRS feed

  • Question

  • 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.
    Tuesday, October 30, 2018 5:57 AM

All replies

  • 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.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Tuesday, October 30, 2018 7:33 PM
  • We are using Win32 Network Management APIs function (NetUserGetInfo) to get user details from a remote server (workgroup server).  its working on 2008 & 2012 server.  But it wont work on 2016 server, we are getting Access Denied error, but it work only with default Administrator account.  Not other users including users have Administrator privileges.

    Wednesday, November 21, 2018 12:25 PM