Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Can anybody give me some idea on how we can create a group policy on a domain and set group policy settings using c# using grouppolicy api

any help or idea is much appreciated

Thanks
Posted
Updated 20-Dec-11 1:04am
v2

you can use Microsoft.GroupPolicy. the first you must Installing the GPMC Class Library .look at this:http://msdn.microsoft.com/en-us/library/windows/desktop/ff182374(v=vs.85).aspx[^]
and then add reference Microsoft.GroupPolicy.Management.dll in VS.NET.the detail you can read this:http://msdn.microsoft.com/en-us/library/microsoft.grouppolicy(v=vs.85).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900