Monday, 28 January 2019

Connect to remote shared folder and copy content



net use k: $destinationFile /user:$username $password
New-Item -Path k:/$buildn -ItemType Directory -Force //create new folder in remote machine
xcopy $sourceFile k:/$buildn /E /Y /I    //Copy files to shared location
net use k: /delete

No comments:

Post a Comment