Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Copy File from One Location to Another Location through xcopy or any

$
0
0

Hi,

I Need to copy one file from one location to another location. That file need to save in C:\Windows\System32 folder

I need to create one .bat file and i want apply that bat as a startup script through GPO.

I tried through XCopy if i test in machine that is working. If i tried in other machine that is not working. becoz of some Credential issue

I tried in the script by netuse command after that my script itself not working.

SET username=XYZ\Administrator

SET password=abcd

@ECHO OFF

cmd "cd C:\"

net use "\\10.50.5.68\c$\Windows\System32" %password% /user:domain\%username%

:copy

Xcopy /S /I /E D:\DLL \\10.50.5.68\c$\Windows\System32 



Regards, Hari Prasad.D


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>