Solved

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

Posted on 2003-10-23
4
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Part One of the two-part Q&A series with MalwareTech.
This video teaches viewers about errors in exception handling.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

627 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