I think you should use IEnumerator iHeirarchy = SecurityManager.PolicyHierarchy(); then you can loop each policy level PolicyLevel polLevel = iHeirarchy.Current as PolicyLevel; and then you can get the codegroup by taking polLevel.RootCodeGroup.Children or get the named permission set polLevel.NamedPermissionSets from here you can manipulate whatever you wan't like removing or adding.
O
Osrald
@Osrald
Posts
-
How to access Local Security Policy using c# -
Datarow Array with foreach questionHi! newbie here just asking which of the following code is more efficient 1. DataRow[] dataRowArray = dtDataTable.Select("TableColumn = 1"); foreach(DataRow drRow in dataRowArray) { ...some processing here } OR 2. foreach(DataRow drRow in dtDataTable.Select("TableColumn = 1")) { ...some processing here } my problem here is do I need to put the result in a datarow array to make it more efficient? or not an issue at all?
-
SBC PackersCheck this out http://www.rikfx.com/humor.php when you are on the site click the link entitled "SBC Packers (title screen is like 20 sec)" then enjoy the show.
-
Disabling Some items in ComboBoxAbsolutely yes, I've found similar article but was done in VC++ 6.0 and I don't know how to convert it to C#..
-
Disabling Some items in ComboBoxAny idea how to disable some items in C# ComboBox?