Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. # IPC$ share options #
  2. $IPCHost = "192.168.1.123" # Host name to create IPC$ share with
  3. $IPCUser = "test\test" # Authentication
  4. $IPCPwd = "234234" # for IPC$ share
  5. # Copy TO settings #
  6. $DstHost = "192.168.1.123" # Destination Host Name
  7. $DstDir = "C:/Users/test/Desktop\" # Destination Directory Path
  8. # Copy FROM settings #
  9. $SrcHost = "host_name" # Source Host Name
  10. $SrcDir = "F:/Users/test/Desktop" # Source Directory Path
  11. # E-Mail Settings #
  12. $LogPath = 'C:/Users/test/Pictures/Copy_Logs.txt' # Full path to log file (c:\temp.name.log)
  13. # Parameters (robocopy keys) #
  14. $Params = "/E" # Specify needed robocopy.exe parameters here
  15. # Action Block #
  16. NET USE /u:$IPCUser $IPCPwd
  17. # robocopy \\$SrcHost\$SrcDir\ \\$DstHost\$DstDir\ $Params
  18. robocopy $SrcDir\ $DstDir\ /E
  19.  
  20. # NET USE \\RDS1\IPC$ /KOLKHORST\USER "PASSWORD"
  21. # robocopy "\test" "\\122.123.123.123\TEST"
  22. PAUSE 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement