Copying one file to multiple computers
Something's stopped me being clever this morning.
I've got a shortcut file that I want to put on admin users desktops. I've already written it into the logon script as a simple copy command from a network location to Documents and Settings\All Users\Desktop so tomorrow it won't be a problem.
However, I'm impatient and want it there now.
Can the copy command be used to run a batch now to copy this shortcut to the desktop of every admin computer currently on? Can it be done without using GP?
Someone suggested somewhere that...
... might work but it didn't.
copy \\server\file.lnk "\\%computername%.mydomain.local\c$\Documents and Settings\All Users\Desktop\file.lnk"
Curious about the PSEXEC option
What copy command do you use in your batch file? I understand the @file option. I dont understand how a remote copy command will copy the proper file to all of the computers in the computer.txt file. Dont you have to specify the file to be copied and the destination in the copy command?
copy c:\folder\test.txt "\\remote computer\folder"
How does the computer.txt file replace the remote computer?