?
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
?
75 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

EE introduced a new rating method known as Level, which displays in your avatar as LVL. The new Level is a numeric ranking that is based on your Points. This article discusses the rationale behind the new method and provides the mathematical formula…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
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…
Notifications on Experts Exchange help you keep track of your activity and updates in one place. Watch this video to learn how to use them on the site to quickly access the content that matters to you.
Suggested Courses

764 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