Solved

How to retrieve the value for "prompt user to change password before expiration" of local policy settings?

Posted on 2003-10-23
4
273 Views
Last Modified: 2010-08-05
In windows 2000
Goto Start >> Programs >> Administrative tools >> Local Security Settings >> Local Policies >> security options >> "prompt user to change password before expiration"
Mostly the default value of your local policy setting will be 14 days.
The requirement for me is :
I want to query this value programatically through SDK api's for both remote domain server as well as your local machine(precedence is for getting the value from remote domain server ).
0
Comment
Question by:yogindar
4 Comments
 
LVL 3

Accepted Solution

by:
pg_india earned 125 total points
ID: 9606267
well search goolge for NT authentication
ty this:
Private Declare Function GetUserProfileDirectory Lib "userenv.dll" Alias "GetUserProfileDirectoryA" (ByVal hToken As Long, ByVal lpProfileDir As String, lpcchSize As Long) As Boolean

i will suggest if u r using api goto http://www.allapi.net/ and download the api viewer..

there in Windows information u will see lot of of apis.
0
 
LVL 5

Assisted Solution

by:WorkingJourneyman
WorkingJourneyman earned 125 total points
ID: 9606835
You'll need to use the Group Policy API... docs are at http://msdn.microsoft.com/library/en-us/policy/policy/group_policy_start_page.asp

The function GetGPOList() will retrieve stored group policy objects from a remote computer.
The function GetAppliedGPOList() will retreive group policy objects as applied for a machine or user.

I don't know how to locate the specific policy setting you need. You'll have to do some research and experimenting.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question