Solved

Copy file during execute Login.cmd

Posted on 2000-03-22
3
180 Views
Last Modified: 2013-12-19
I want to copy some files every time a user log in with a batch command file (NETLOGON folder). The batch should get the name of the user, check the desktop settings of his profile and copy some files in his specific desktop folder (profile). Any chance?
0
Comment
Question by:Linuxbaer
3 Comments
 
LVL 3

Expert Comment

by:kinsey
ID: 2645636
check out http://netnet.net/~swilson/kix/download.htm 
or... create a separate login script for each user
0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2645685
NETLOGON will be READ only for logged on users, so you'll have to store it somewhere else, where users have write access.
Unfortunately, this means users can delete these files too.
Bit of a dillemna !
The username variable is stored in %username% automatically - what exactly do you want to do with the profiles ?
0
 
LVL 1

Accepted Solution

by:
gkollar earned 20 total points
ID: 2646693
Be careful the NETLOGON becomes from the PDC or the SDC. So if you want write some information from the %username% and the %computername% you must share a path into the PDC with RWD for every body. I can get you a example my e-mail gkollar@uapl.fr.

To modify the profile for specific user or a group you can use POLEDIT.EXE.
When a user log in the file .pol overwrite the register /HKEY_USER with the entry from the pol.
You can get more information on the web site microsoft, item ZAK ( Zero Administration Kit)

Best Regard from France.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

15 Experts available now in Live!

Get 1:1 Help Now