Group Policy Management
-
Hi all, I am trying to manage group policies programaticaly, using C#. I have searched through google from last 2 days and find nothing on it. In one forum I have found that I need to add "GPO Admin 1.0 Type Library" from COM reference into my project. But in Visual Studio 2008 (.NET framework 3.5) does not contain it. So, right now I do not know whether I can do that or not. All kind of relative suggestions are welcome. Thanks.
-
Hi all, I am trying to manage group policies programaticaly, using C#. I have searched through google from last 2 days and find nothing on it. In one forum I have found that I need to add "GPO Admin 1.0 Type Library" from COM reference into my project. But in Visual Studio 2008 (.NET framework 3.5) does not contain it. So, right now I do not know whether I can do that or not. All kind of relative suggestions are welcome. Thanks.
I've done some programming in C# when it comes to user groups and policys (but probably not the way that you're about to do..). For the user group part I used some netapi.dll methods with p/Invoke. For the policy part maybe you could check the System.Security namespace? It's been awhile since I worked with these things so you have to excuse this kinda vague answer :/ Good luck!
-
I've done some programming in C# when it comes to user groups and policys (but probably not the way that you're about to do..). For the user group part I used some netapi.dll methods with p/Invoke. For the policy part maybe you could check the System.Security namespace? It's been awhile since I worked with these things so you have to excuse this kinda vague answer :/ Good luck!
Hi Calla, Thanks for the reply. I'll surely try the System.Security namspace. Yesterday, I have found something interesting in MSDN. They are using scripts (JScript, VBScript or Shell Script) for managing Group Policies. But I dont know even 'S' of scripting langauges. Lets see how much I can progress in that foeld with C#. Bye.