C# PrincipalContext The network path was not found
问题 I am trying to use PrincipalContext to check if a local user group exists on a remote computer. I am having problems with PrincipalContext : PrincipalContext ctx = new PrincipalContext(ContextType.Machine, machine, null, ContextOptions.Negotiate) It works in such scenarios: local to local machine local to virtual machine domain machine to workgroup machine However it doesn't work in opposite direction: virtual machine to local host workgroup machine to domain machine I am getting these errors