Solved

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

Posted on 2003-10-23
4
276 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xcopy loop 13 74
Support for Notepad++ (including downloading & installing a plugin) 5 246
Python 3.5.2 32 virtualenv problems 3 101
Batch Files - Error Handling 4 60
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

738 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