SCRIPT: EnableOWApwd.ps1

Script Name: EnableOWAPwd.ps1 v1

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


# EnableOWAPwd.ps1
# Author: Anderson Patricio

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

Leave a Reply

Your email address will not be published. Required fields are marked *