I have a list of 150 computers on my Windows Active Directory network that I am trying to copy a files to. I wonder if someone might have a script that would, copy the files or shortcut to the computers by looking for the PC names in a text file.
closed as too localized by Brent Pabst, Scott Pack, Lucas 'Paul' Kauffman, HopelessN00b♦, mailq Oct 2 '12 at 0:50
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
The reason that you don't want to do this the way that you proposed is that if a computer is not on or is unavailable or has a file locked, this won't work. A logon script or GPO gets around this restriction and guarantees that computers in your organization are compliant.
If you really want to use a script for this and feed it names, I recommend PowerShell. You can use
If you want more info on any of these cmdlets, just run