none
Unable to add domain user to local administrators group. RRS feed

  • Question

  • Hi,

    I have machine having Windows Server 2008 R2. I have added it to my test domain. Now I want to add domain user to built-in local aadministrators group of that machine. Whenever I try to do so, I get below message.

    ---------------------------
    Local Users and Groups
    ---------------------------
    <UserName> is already a member of group "Administrators".
    ---------------------------
    OK   
    ---------------------------

    But still I could not see it as a member of group.

    I tried doing same programatically using API NetLocalGroupAddMembers, I got similar return code i.e. ERROR_MEMBER_IN_ALIAS. Return code of GetLastError was ERROR_IO_PENDING.

    Please let me know if anybody has encountered such scenario, and how to resolve this?

    Thanking you in anticipation.

    Regards,
    Rohit
    Friday, April 5, 2013 7:34 AM