none
Using GPMC dll library without installing GPMC product RRS feed

  • Question

  • Hi friends,
    I'm developing a c# application that compares the current computer's GPO with the recommended. It should be a "light" app that runs on many computers with no installation.

    In order to read the computer's GPO, i used "Microsoft.GroupPolicy.Management.dll" (it works well).

    I copied the exe and the dlls to a folder in another computer, when i run it i get the following error:

    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.

    However the  'Microsoft.GroupPolicy.ServerAdminTools.GpmgmtLib.dll' exists in my exe folder and its only dependency exists in the .NET framework installation.

    Is it possible to use the GPMC dlls without having the GPMC product installed?

    Eyal.

    Tuesday, September 9, 2014 10:43 AM

Answers

  • Hello Reginiano,

    >> Is it possible to use the GPMC dlls without having the GPMC product installed?

    Being not sure if it is possible because these dlls is deployed when installing the product, we do know if there are some additional operations as registering these dlls to GAC and valid them, if they have, when you want reference these dlls, you might need to do these operations, too. For this, I would suggest that you could post it to the GPMC product forum to confirm what this product actually does during installing.

    As my opinion, since it is a product, it is recommended to install it, it may do some additional operations for ensuring these dlls work.

    Best Regadrs,

    Fred.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, September 10, 2014 5:48 AM
    Moderator

All replies

  • Hello Reginiano,

    >> Is it possible to use the GPMC dlls without having the GPMC product installed?

    Being not sure if it is possible because these dlls is deployed when installing the product, we do know if there are some additional operations as registering these dlls to GAC and valid them, if they have, when you want reference these dlls, you might need to do these operations, too. For this, I would suggest that you could post it to the GPMC product forum to confirm what this product actually does during installing.

    As my opinion, since it is a product, it is recommended to install it, it may do some additional operations for ensuring these dlls work.

    Best Regadrs,

    Fred.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, September 10, 2014 5:48 AM
    Moderator
  • Thank you Fred,

    The GAC registration might be a good idea.

    Anyway, I posted in the forum you suggested.

    Cheers,

    Eyal.

    Wednesday, September 10, 2014 8:12 AM