login script (batch file probably) to copy couple of files

Posted on 2006-04-26
Last Modified: 2013-11-13
i would like to write a login script which should copy a couple of files from the network and put it in their respective user machine.
This is probably easy instead of us running around each machine and trying to copy..
any headstarts or how to proceed...

Question by:Pra4444
    LVL 12

    Author Comment

    i forgot to add that we run windows xp on most machines..
    LVL 7

    Expert Comment

    Place your startup script under

    C:\WINNT\sysvol\sysvol\{your ads domain name}\scripts

    Then go to your "Active Directory Users and Groups", select each of the users you wish to be affected by the script,
    edit the user and select "Profile", type the name of the script (eg: netlogon.bat") here.

    If your script is copying files, place them in the above folder as well.

    Then go to your "Active Directory Users and Groups", select your domain component (eg: nwtraders.msft),
    right click and select "Properties"

    Select the "Group Policy" tab, and "Edit" the "Default Domain Policy"
    This will open a group policy editor, under

      "User Configuration/Windows Settings/Scripts"

    you can specify or copy one or more batch/cmd/vbs files to be run at logon
    LVL 7

    Expert Comment

    Whoops, the second half of those instructions is only if you want to specify a logon script for everyone and you don't wish
    to configure EACH profile.

    Sorry about that
    LVL 12

    Author Comment

    i am sorry i am a novice...
    how do i write the script??? is it just a simple copy statement???
    LVL 7

    Accepted Solution

    Yup, say you wanted to copy a hyperlink file:  The icon on the desktop says "HelpDesk"

    1) Copy the icon into the scripts folder
    2) create a text file, call it logon.bat
    edit the file with notepad

    in note pad type:
    copy HelpDesk.lnk "c:\Documents and Settings\All Users\Desktop"

    3) Save and close the text file.
    4) Double click the file to confirm that it will actually copy the file to the correct location
    5) Test by logging ito another machine
    LVL 7

    Expert Comment

    Glad to help Pra444

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    copyEvens challenge 6 46
    Edit Registry Key via Batch File 8 38
    factorial example challenge 10 44
    .csv files 5 62
    Introduction This question got me thinking... ( Why shouldn't we use Globals? This is a simple question without a simple answer.  How do you explain these concepts to a programmer w…
    This article will show, step by step, how to integrate R code into a R Sweave document
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    731 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

    18 Experts available now in Live!

    Get 1:1 Help Now