Get-QADUser -SearchRoot ‘domainname.com/OuName‘|%{$_.TsProfilePath =’\ServerName1profilesshare‘ + $_.sAMAccountName;$_.CommitChanges();}

Change values in RED:
Where domainname.com – Fill your domain name
Where OUName – Fill desired OU name
Where \ServerName1profilesshare – fill your file server name and terminal servers profiles share path

Note: I sugest testing it very well before apluing to production enviroment