Solved

Copy file during execute Login.cmd

Posted on 2000-03-22
3
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 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