The script is available for download from http://gallery.technet.microsoft.com/How-to-prevent-a-group-of-5a915d54. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This PowerShell script sample shows how to prevent a group of users from changing their passwords in Active Directory.
Sometimes admins want to restrict all the users of a group from changing their password. This script is to achieve that.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery