Results 1 to 8 of 8

Thread: [RESOLVED] Group Policy Editor

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Resolved [RESOLVED] Group Policy Editor

    Is it possible to make a program that can change the restrictions using (GPedit.exe).

    If there is pls could someone give me some ideas of doing this.


    Thanks in advance crhis1990

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Group Policy Editor

    Quote Originally Posted by chris1990
    Is it possible to make a program that can change the restrictions using (GPedit.exe).
    Can you clarify a bit?

  3. #3
    Lively Member
    Join Date
    Oct 2006
    Posts
    78

    Re: Group Policy Editor

    I think he means like stopping people accessing folders they shouldnt and such by typing code in VB telling it to open gpedit.exe (the group policy editor for windows) and change permissions.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Re: Group Policy Editor

    I mean can i make a program where i can use tick boxes on my program to control the tick boxes on GPedit.exe, which will then add restrictions to the pc.

    Chris1990

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Group Policy Editor

    Yes, I believe you can script group policy objects. I havent done it but came across it when I was working with them 6 months ago. Try a search on MSDN.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Group Policy Editor

    I actually made a policy editor back in the Win98 days (it would probably need some alterations to work under XP), but, the thing I discovered is that unless I was an admin on the box, my program wouldn't work.

    That is something to take into consideration.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Question Re: Group Policy Editor

    Quote Originally Posted by RobDog888
    Yes, I believe you can script group policy objects. I havent done it but came across it when I was working with them 6 months ago. Try a search on MSDN.
    Couldn't find it on MSDN website,
    thanks anyway,

    Does any one have any ideas on starting off the code

  8. #8
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: Group Policy Editor

    well, i dont know about the origional idea, but there is a command-line based command to edit policies-

    GPRESULT - view group policies
    GPUPDATE - update group policies

    shelling various arguments to these command might allow you to accomplish what you need.

    but i really dont know much about it, just noticed it while browsing, and i rembered your question.
    hope it helps.

    oh, type "gresult /?" at the command line to get the documentation, same for gpupdate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width