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
Printable View
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
Can you clarify a bit?Quote:
Originally Posted by chris1990
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.
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
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. :)
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.
Couldn't find it on MSDN website,Quote:
Originally Posted by RobDog888
thanks anyway,
Does any one have any ideas on starting off the code
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