AD Change Roaming profile Path Terminal server

I created this script because of moving the profiles to a server in the data center were also the terminal server is located.

Powershell needs to be runned as Administrator

 

Task scheduler send email

Open Task Scheduler
Right Click Create New Task

Go to Tab Actions and click on New

Now enter powershell.exe under Program/scripts

Add argument > point this to the powershell script, eg C:\scripts\email.ps1

now the very simple powershell script: email.sp1