Remotely copy files to many computers




















Answered by:. Archived Forums. Configuration Manager Current Branch — General. Post questions here that are not appropriate for the other Configuration Manager specific forums, AND after you have already searched for your answer. Sign in to vote. I am using a batch file called "file. Edited by mpng Thursday, August 16, AM. Thursday, August 16, AM. Proposed as answer by Richard. Why not have a simple logon script that pulls the files when they login to the Domain That's what I originally do for these situations, but it hasn't been successful.

Users don't connect to the VPN until a couple minutes after they've logged in. Its around computers. PDQ inventory can detect if machines come online or even do not have those files, the PDQ can deploy a batch job to copy the files push or pull also can to those machines.

You may get a better answer to your question by starting a new discussion. It has an inefficiency issue wherein it would copy one at a time but that shouldnt be an issue for 50ish machines. This could help if you made a PowerShell script. The file would be copied to the temp folder on each machine. Update the paths as required for your scenario. I only suggest this since you tagged powershell-remoting. If you are not adept with PowerShell maybe someone else can give you a better answer more of what you are looking for.

Using RoboCopy for one file seemed tedious. If you wanted to check to see if a folder exists and is accessible you could do something like this. If you have set your environment up to support PSRemoting and have placed the file in a file share you can use PowerShell Remoting to instruct many computers to retrieve the file themselves nearly simultaneously with Invoke-Command.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. All the examples shown are performed in a test domain environment using a Domain Admin account but as long as your user has sufficient rights the commands should work fine.

Let's use an example to demonstrate how Copy-Item works: let's say we want to copy an. To do so, we will run:. As you can see from the above, we have defined the full path of the example. I prefer a slightly more sophisticated solution — we can use the Get-Content cmdlet or gc for short to get the contents of a text file called servers. This text file simply contains a list of servers, each on a new line. We can pass each line of the contents of servers. The script below will achieve this:.



0コメント

  • 1000 / 1000