If performing a local copy, example D:\ to E:\

Do the following:

Create 2 variables for the destination and source in powershell.

$Source = “D:\” $Dest = “E:\”

Then run the following line;

robocopy $Source $Dest /e

This can also applied for UNC paths and mapped drives.