Copy-SFItem's -Verbose flag doesn't give verbose output

  • 1
  • Question
  • Updated 1 week ago
I'm trying to script out uploading files to ShareFile via the Copy-SFItem cmdlet.  I would really like to have my job log the files that got uploaded.  With the standard copy-item cmdlet, the -Verbose flag gives me exactly what I need.  However when I use the -Verbose flag on the copy-sfitem cmdlet nothing gets returned.  I can't see where it does anything.  Do I need to provide anything else in the command to have it log the activity other than just saying the copy was successful?
Photo of Joel Sheldon

Joel Sheldon

  • 1 Post
  • 0 Reply Likes

Posted 3 weeks ago

  • 1
Photo of Jeremiah Strong

Jeremiah Strong

  • 21 Posts
  • 2 Reply Likes
Not that I am aware.

With that said, as a hack you could get all the files in your upload directory and then filter out the results for all files "Creation Date" in some time interval like in the last 30 minutes. 

If you are looking to just capture files that failed to upload, you could wrap your copy command in a try/catch block, then write this to a log file.