Dynamic Group , Scheduled Task , Group Family

Hi Team. 

I had a need at the weekend to change the server on which all Dynamic groups are evaluated / updated from. In the past i have used the script below.

Can i script in the same way changing all the scheduled tasks and group family in the same way? 

$ARServer = "AR-SERVER-NAME-HERE"
Get-QADGroup -Dynamic $TRUE -proxy -DontUseDefaultIncludedProperties |`
Set-QADGroup -proxy -ObjectAttributes @{'edsaDGOriginatingService'="$ARServer"}