Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # IPC$ share options #
- $IPCHost = "192.168.1.123" # Host name to create IPC$ share with
- $IPCUser = "test\test" # Authentication
- $IPCPwd = "234234" # for IPC$ share
- # Copy TO settings #
- $DstHost = "192.168.1.123" # Destination Host Name
- $DstDir = "C:/Users/test/Desktop\" # Destination Directory Path
- # Copy FROM settings #
- $SrcHost = "host_name" # Source Host Name
- $SrcDir = "F:/Users/test/Desktop" # Source Directory Path
- # E-Mail Settings #
- $LogPath = 'C:/Users/test/Pictures/Copy_Logs.txt' # Full path to log file (c:\temp.name.log)
- # Parameters (robocopy keys) #
- $Params = "/E" # Specify needed robocopy.exe parameters here
- # Action Block #
- NET USE /u:$IPCUser $IPCPwd
- # robocopy \\$SrcHost\$SrcDir\ \\$DstHost\$DstDir\ $Params
- robocopy $SrcDir\ $DstDir\ /E
- # NET USE \\RDS1\IPC$ /KOLKHORST\USER "PASSWORD"
- # robocopy "\test" "\\122.123.123.123\TEST"
- PAUSE 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement