You intend to use different retention policies for different groups of protected machines. For instance you want to have a specific retention policy for domain controllers, another one for file servers, another one for your SQL servers etc. Due to the size of your environment this is a time consuming job. Moreover, you want to be able to create templates for these different protection policies so you can change the retention policy to multiple protected machines at the same time or apply them to newly protected machines with minimum of administrative effort.
This script is provided "as is" for the purpose of illustrating how AppAssure tasks may be performed in conjunction with Powershell. AppAssure shall not be liable for any direct, indirect, incidental, consequential, or other damage alleged in connection with the furnishing or use of this script or of the principles it demonstrates.