"Machine policy" is a bit vague as to what specifically you are looking for (password rules, domain policies etc.) but I'm sure a more specific set of search terms should narrow down the results.
[QUOTE=tlhintoq]---> Google (pointer to google, get it?)
thanks for your inputs.To be ore specific,I want to read
Computer Configuration\A dministrative Templates\Windo ws Components\Term inal Services\Termin al Server\Device and Resource Redirection fileds (gpedit.msc values) through c#.
Correct me if I'm wrong, but the first paragraph describes these policies as a way of changing registry settings to get the results you want. Which is how most of Windows stores its settings.
So, to read the policies you read the registry settings for item(s) you want to knwo the value of. Reading the registry is pretty straight forward and well documented.
The second paragraph tells you the location of the user policies as:
%SystemRoot%\Sy stem32\GroupPol icy\Machine\Reg istry.pol
So it would seem reading this file should give you a concise list of all the policy values without having to dig through numerous registry settings.
Comment