Copy a file to the system32 folder of 30 systmes in 2003 Domain

Posted on 2007-10-21
Last Modified: 2010-04-18
We need to place a file in the windows 32 folder of all of our worksation . About 30 of them. waht is the best way of doing this. We have 2003 AD , with windows xp pro clients.
Question by:netcomp
    LVL 95

    Accepted Solution

    make a list of the computers, one computer name per line and nothing else.  Then run this command:

    for /f "tokens=1" %a in (ListOfComputers.txt) do copy x:\FileToCopy.ext \\%a\admin$\system32

    That's it.  You'll be done in a few seconds, depending on how large the file is.
    NOTE: If you use this in a batch file, you need to use %%a instead of %a
    LVL 1

    Author Comment

    how do i make the list of computer txt. would be with commas. Where would I place the listofcomputes.txt. ?
    LVL 1

    Author Comment

    LVL 95

    Expert Comment

    by:Lee W, MVP
    As I said, ONE computer name per line and nothing else - no commas, semicolons, ip addresses, nothing else.


    You put the file whereever.  You run the command from whereever the file is.  If the file is in c:\windows, then you run the command from c:\windows.  (Using a command prompt, not the start menu/run command).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video discusses moving either the default database or any database to a new volume.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now