Category : user-accounts

I have a question about one group on my virtual Windows 10 computer. I use this code to get global groups which local user belongs: type TGroups0 = array of record name: LPWSTR; end; var I: Integer; cbRead, cbTotal: Cardinal; pGroups: Pointer; sGroup: string; begin Result := False; if (NetUserGetGroups(PChar(Server), PChar(UserName), 0, pGroups, MAX_PREFERRED_LENGTH, cbRead, ..

Read more

I’m not able to login to our internal application on Windows Server 2016, when attempting to login by using my AD account from a AD group that has been added successfully to the application, Im getting this error: Web.AccountSearchHelper – (null) Couldn’t get Netbios domain name! System.DirectoryServices.Protocols.DirectoryOperationException: The object does not exist. at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32 messageId, ..

Read more

I’m trying to query user info from a local SAM database on a remote windows box. I’ve got the syntax for a local call worked out just fine, but for a remote call I just can’t seem to find the right syntax to connect to a remote system. Add-Type -AssemblyName System.DirectoryServices.AccountManagement; $ct = [System.DirectoryServices.AccountManagement.ContextType]::Machine; $User ..

Read more