views:

1202

answers:

5

Group policy based restriction for controlpanel and taskmanager in c#

A: 

This isn't a programming question, but a question of workstation policy management. Start looking at e.g. this.

Pontus Gagge
A: 

Have a look at WMI. Here is a link to an article on WMI Group policy objects: http://msdn.microsoft.com/en-us/library/aa375082(VS.85).aspx

This tool will generate example c# code for you:
WMICodeCreator

JMarsch
A: 

you can use Registry key to restriction task manager and control panel easily!

A: 

Hi I want to edit a GRoup policy in C# i.e "just created through c#" Can you provide me some sample for this ????

Any little help will be appreciated greatly

Thanks in advance Regards Sohaib Qazi

Sohaib
This is not answer
JKS
A: 

There is some information on how to edit GPO Registry settings available here: http://msdn.microsoft.com/en-us/library/aa374274(v=VS.85).aspx

There is also a good blog post here: http://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-group-policy-objects-programmatically-simple-c-example-illustrating-how-to-modify-a-registry-based-policy.aspx

The examples are in C++ but some clever person may be able to write a .net wrapper.

Jachin