ShiftNick

Powershell Robocopy

May 15th, 2015
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $Source = "\\server1\share1"
  2. $Dest =  "I:\Shares\share1"
  3. $LogPath = "I:\"
  4. $Date = Get-Date -format "dd-MM-yyyy"
  5. $LogName = "Robocopylog-share1_$Date.txt"
  6.  
  7. robocopy $Source $Dest /MIR /COPYALL /R:3 /W:10 /ZB /MT:64 /NP /LOG:$LogPath$LogName
Advertisement
Add Comment
Please, Sign In to add comment