Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Group Policy Management

Group Policy Management

Scheduled Pinned Locked Moved C#
csharpdotnetvisual-studiocom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    subhabasu
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • S subhabasu

      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.

      C Offline
      C Offline
      Calla
      wrote on last edited by
      #2

      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!

      S 1 Reply Last reply
      0
      • C Calla

        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!

        S Offline
        S Offline
        subhabasu
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups