Hi
I have an OU named TempOU set at my domain controller.
All my users are getting created in this OU.
I have a group policy setup for this OU.
Can anyone tell me how to read the values for these settings in C# code.
i need to read lockoutDuration and maxPwdAge.

Thanks and regards
Vikas Manghani

Re: Group Policy by Jens

Jens
Fri Sep 22 11:50:08 CDT 2006

"Vikas Manghani" <VikasManghani@discussions.microsoft.com> wrote...
> Hi
> I have an OU named TempOU set at my domain controller.
> All my users are getting created in this OU.
> I have a group policy setup for this OU.
> Can anyone tell me how to read the values for these settings in C# code.
> i need to read lockoutDuration and maxPwdAge.

the two links should help you:
http://www.codeproject.com/dotnet/QueryADwithDotNet.asp
http://www.codeproject.com/dotnet/activedirquery.asp

--
mfg
Jens



Re: Group Policy by VikasManghani

VikasManghani
Sat Sep 23 04:45:01 CDT 2006

Hi Jens
Thanks for the links.
However I was unable to find how to retrieve the
group policy for the OU.
I need the values for the maxPwdAge and lockoutDuration attributes
that I have set for my OU.
I am able to retrieve the values that are set for the domain as a whole,
But not what I have set for my OU and which override the remaining
domain policies.

Vikas

"Jens Weibler" wrote:

> "Vikas Manghani" <VikasManghani@discussions.microsoft.com> wrote...
> > Hi
> > I have an OU named TempOU set at my domain controller.
> > All my users are getting created in this OU.
> > I have a group policy setup for this OU.
> > Can anyone tell me how to read the values for these settings in C# code.
> > i need to read lockoutDuration and maxPwdAge.
>
> the two links should help you:
> http://www.codeproject.com/dotnet/QueryADwithDotNet.asp
> http://www.codeproject.com/dotnet/activedirquery.asp
>
> --
> mfg
> Jens
>
>
>