I have this library:
Microsoft.GroupPolicy;
And this code:
GPDomain domain = new GPDomain("MyDomain");
Console.WriteLine(domain.DomainName);
I get this message error when I run the code:
Could not load file or assembly 'Microsoft.GroupPolicy.ServerAdminTools.GpmgmtLib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified.
Any idea on how to solve my problem?