Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP copying a file to remote computers

Status
Not open for further replies.

porress

IS-IT--Management
Oct 2, 2003
118
GB
I have got this file FixWelch.exe, I've made a script that execute successfully the with the command Runas on the machine but only works when the file is on the machine I would like to write a script to copy this file from a share folder in the server to all the machines as c:\FixWelch.exe, and afterwards I can execute my script to run it as Administrator.Can anyone help me? Thanks This virus is getting my nerves...!
 
Hello porress,

Can fso.copy serve the purpose when users login?
Code:
createobject("scripting.filesystemobject").copyfile _
    "\\server\share\FixWelch.exe", "c:\", true

regards - tsuji
 
I have tried this before but users don't have rights to write to the disk I would like to do it when the users logon but the RUNAS commmand with xcopy does not work for me, and I don't know any other solution.
 
Have you specified to Always Run Scripts with Elevated Priviledges in your GPO?

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top