On my last Post I share information regarding a script to add Device Policies to Delivery Group.
I made some modification to this script to be able to accomplish the same things for smartActions
Note: For this script as well as for the previous, smartActions need to be configured on the XMS.
All the detailed steps have been included in my last Post so I will not put them here.
The script can be downloaded here
Note: Those information are provided based on my own experience.