Batch file to copy files to multiple computers
Hello, I'm fairly new to programming, do more support type issues. Wrote a robocopy script which works, but it does it one machine at a time. Is there a way to modify it to send it out all at once? The machines were pre-set with power settings to go to sleep after 30 minutes, so when I go one machine at a time, it doesn't do all of them. Popular Topics in IT Programming. Which of the following retains the information it's storing when the system power is turned off?
Submit ». JitenSh This person is a verified professional. Verify your account to enable IT peers to see that you are a professional. Krizz This person is a verified professional.
JitenSh wrote: try this batch Batchfile. Page 1 of 2 1 2 Last Jump to page: Results 1 to 15 of How do you do Thread, Copying one file to multiple computers in Technical; Hi gang, Something's stopped me being clever this morning.
I've got a shortcut file that I want to put on Hi gang, Something's stopped me being clever this morning. I've got a shortcut file that I want to put on admin users desktops. 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 If you are running it in the local computers context. Also remember you can use Group Policy Extenstions for this as well free.
I do this sometiomes frequently via a script I picked up I posted it in another thread. Attached Files Patch remote PCs. Hi I dont know if you could do this but it might be easier.
Create a share on a server and assign the admin users read permission on the share and the ntfs permissions. Copy the short cuts or icons in the share Now create a group policy that will only apply to one test user of admin and call it redirect desktop.
Now edit the gpo and set the path to the share, set the grant users exclusive access to disable, move content of desktop to disable, policy removal behavior to restore content. Also I would like some sort way of confirming it has been successful on each device.
Is there a way I can possible create another text file or edit the one with the list of assets and have the batch put the asset down and then a S for success or a F for fail next to it?
Thanks Gary. Last edited by 97browng on Thu Aug 09, am, edited 1 time in total. The assets are actually different and range from A to a Obviously I can change your code to match this, but as PCs fail and we need the replace them the assets will change. That's why I was thinking of using a text file so I can keep it up to date with the correct data.
0コメント