EWS: How can I retrieve password expiration date?

Hi,

I am using EWS API's in web application. Can you please tell me how can I get the exchange account password expiration date?

I tried this:https://code.msdn.microsoft.com/office/Exchange-2013-Get-the-date-3a92c007

But no luck, please help.

Thanks,

Prashant Mahajan

  • Moved by CoolDadTxMVP Friday, March 20, 2015 3:37 PM Exchange related
March 20th, 2015 5:06am

Hi Prashant,

Have you taken a look at this documentation: https://msdn.microsoft.com/en-us/library/office/hh505731%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396?  Also, can you please provide a copy of the request and response where you get an error, including the headers?

Thanks,
Venkat

Free Windows Admin Tool Kit Click here and download it now
March 22nd, 2015 11:34am

Yes! I tried this one. I am getting the password expiration date, but it is the MAX date i.e. I am getting 31st Dec 9999. Please help!

Thanks,

Prashant Mahajan

March 23rd, 2015 1:05am

Hello Prashant,

Good Day..

Request you to please try the below command.

Get-ADUser -identity username -properties *

For More Info:

http://oxfordsbsguy.com/2013/11/25/powershell-get-aduser-to-retrieve-password-last-set-and-expiry-information/

Regards,

Praveen

----------------------------------------------------------------------

Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts @ Techrid.com

Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2015 2:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics