Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Copy a file and time it.

Posted on 2011-09-21
1
442 Views
Last Modified: 2012-05-12
I am looking for a powershell script that I can run via a scheduled task OR run Manually that will:

Copy a file from a UNC Share to the C:\Test Directory and time how long it takes
Then I want the script to copy that same file from the C:\Test directory to the R:\data directory and time how long it takes.

Then create a report that shows how long each part took and calculate the average transfer rate.
0
Comment
Question by:brittonv
1 Comment
 
LVL 14

Accepted Solution

by:
athomsfere earned 500 total points
ID: 36577336
You could use this and modify it

$File1Start = Get-Date
Copy C:\TestDirectory C:\Destination -Recurse
$File1End = Get-Date

$File2Start = Get-Date
Copy C:\Destination C:\Destination2 -Recurse
$File2End = Get-Date

echo $File1Start
echo $File1End

echo $File2Start
echo $File2End
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question