• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

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

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...

Thanks.
Sach
0
Pra4444
Asked:
Pra4444
  • 4
  • 2
1 Solution
 
Pra4444Author Commented:
i forgot to add that we run windows xp on most machines..
0
 
wnrossCommented:
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
0
 
wnrossCommented:
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
-Bill
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Pra4444Author Commented:
i am sorry i am a novice...
how do i write the script??? is it just a simple copy statement???
0
 
wnrossCommented:
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
0
 
wnrossCommented:
Glad to help Pra444
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now