Jump to content

Script to Copy a bmp file to remote machines


Recommended Posts

Posted

Hi there i have a bmp file placed in my c:\rm-cc4.bmp and a i would like to place it on lots of machines.

 

location it needs to go is \\COMPUTERNAME\c$\Program Files\Research Machines\Network Management\Desktop\

 

i've tried a batch file however this appears to be no way of entering a username and password. so that fails. and i've tried

"

Set FSO =CreateObject("scripting.FileSystemObject")

FSO.CopyFile "c:\RM-CC4.bmp","\\COMPUTERNAME\c$\Program Files\Research Machines\Network Management\Desktop\",True"

 

But really have no clue when it comes to scripts. anyone help please?

 

thanks

nick

Posted

Hey Sted, Yes they are on a domain and do you mean a logon script or batch file or what, and what does it need to say or have in? and how do i do that?

 

thanks

nick

Posted
i've tried a batch file however this appears to be no way of entering a username and password. so that fails

 

If you have access, and are running cmd as admin you shouldn't need to enter a username/pass. Does the file copy work if you just run cmd as admin, and type it in? Rather than .BAT?

 

Steve

Posted

@echo off

echo y|xcopy \\servername\netlogon\rm-cc4.bmp c:\

 

save in a .bat file called login.bat and use as the login script in Active directory.

 

Any help?

Posted

i just add a script to an appropriate software deploy gpo as a startup script

 

something like

 

copy "\\server\NETLOGON\files\2simple\2mt.ini" "C:\Program Files\2Simple Software\2Simple collection\Music Toolkit\" /y

 

script.jpg

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...