[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2003-10-23
4
Medium Priority
?
76 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
[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
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 2000 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

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

Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
Learn more about the importance of email disclaimers with our top 10 email disclaimer DOs and DON’Ts.
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…
Suggested Courses

649 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