Solved

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

Posted on 2003-10-23
4
69 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
Comment Utility
You can get the setting from the registry.

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

Brett
0
 

Author Comment

by:yogindar
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

One of the biggest challenges facing freelancers is balancing multiple projects and deadlines. Organizational skills and time management are key to keeping up with projects and staying on track. Luckily, we’ve curated seven tools to help you focus o…
Surprisingly, there is a lot to Gym battles, and I thought it would be helpful to share knowledge about all the ins and outs of this feature!
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…

771 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

14 Experts available now in Live!

Get 1:1 Help Now