Solved

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

Posted on 2003-10-23
4
71 Views
Last Modified: 2006-11-17
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
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 500 total points
ID: 9618128
You can get the setting from the registry.

MACHINE/Software/Microsoft/Windows NT/CurrentVersion/Winlogon/PasswordExpiryWarning

Brett
0
 

Author Comment

by:yogindar
ID: 9618912
Hi Brett
   For local policy it is OK.But what about the remote domain policy.How can I get it?Issue here is if there is a computer in the network with the same name as of the DOMAIN remoteregistry query will return you a value from the network machine right and not from the actual m/c where the DOMAIN exists.
0
 
LVL 34

Expert Comment

by:arbert
ID: 9619616
Not sure what you mean--you mean like a RAS or VPN connected computer that isn't actually a member of the domain?
0
 

Author Comment

by:yogindar
ID: 9625097
Hi Brett
   I mean I can get the value of MACHINE/Software/Microsoft/Windows NT/CurrentVersion/Winlogon/PasswordExpiryWarning using remoteregistry api's.But the issue here is I have a domain named for eg:- DOMAIN1 and I used to login to that domain.But a machine named DOMAIN1 is already existing in the network so If Iam retrieving the value surely it will retrieve the value from DOMAIN1 named machine only not  from the machine where actual DOMAIN1 is,even I dont know the machine name too.So how can I get the machine name.One again my question is is there any api which will retrieve me the machine name if Iam giving it the domain controller name as the input.if Iam getting the machine name I can do a remote registry  query and will retrieve the value.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Originally published Entrepreneur.com Booming numbers of freelancing professionals are changing the face of work. In the United States alone last year, the number of workers freelancing grew from 700,000 to 54 million, according to a Freelancers’…
Gift cards are not a new concept - it's been around for a very long time.  Undoubtedly, over the past you have received such a card or purchased one for a friend or relative.  Are you aware that you've been feeding the machine?  If not, read on :)
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now