i took one last look in the manual and found the line
"The output of XCP SMB commands can be redirected using the “>” operator. For example:"
# 2c write source and destination to a file just in case + create log file as samusername.txt write-output $account.name "has a home directory located here:", $account.homedirectory | out-file -filepath C:\test\moving.txt -Append write-output "wer're moving it here:", "$($account.newhome)`n" | out-file -filepath C:\test\moving.txt -Append write-host $account.samaccountname "log file", $account.homedirectory | out-file -filepath C:\test\user_logs\"$($account.samaccountname).txt"
# 2d make new HomeDirectory based on samaccountname and xcp to new storage array # then set aduser homedirectory path and drive in profile and also remove any login.vbs md $($account.newhome) C:\netapp\xcp\xcp.exe copy $account.homedirectory $account.newhome | out-file -filepath C:\test\user_logs\"$($account.SamAccountName).txt" set-aduser -Identity $($account.samaccountname) -Homedirectory $($account.newhome) -HomeDrive "H:" -ScriptPath " "