Script Download:
The script is available for download from http://gallery.technet.microsoft.com/How-to-set-group-users-to-e9fa605a. 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 script will set a group of users with custom attribute to view a limited address list.
This script is to set a group of users with custom attribute to view a limited address list. For example, the student can only find other recipients in the same grade in address list.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery