1

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?

4

1 回答 1

0

缺少 Microsoft.GroupPolicy.ServerAdminTools.GpmgmtLib.dll

安装 GPMC 类库

在win8上试试这个 安装GPMC

于 2013-08-29T00:42:58.830 回答