SCRIPT: EnableOWApwd.ps1

Share this:

Script Name: EnableOWAPwd.ps1 v1

Log:
v1.0 – Initial script. Description: Add the ChangeExpiredPasswordEnable entry in the registry and restart IIS using /noforce option.

Code:

#
# EnableOWAPwd.ps1
# Author: Anderson Patricio
# http://msmvps.org/blogs/andersonpatricio
#

Write-Host “Adding ChangeExpiredPasswordEnable key in the registry…”
New-ItemProperty “HKLM:SYSTEMCurrentControlSetservicesMSExchange OWA” -Name “ChangeExpiredPasswordEnabled” -Value 1 -PropertyType “DWord”
Write-Host “Restarting IIS using /noforce option..”
IISReset /noforce

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).