Solved

Copy file during execute Login.cmd

Posted on 2000-03-22
3
179 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Resolve DNS query failed errors for Exchange
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

9 Experts available now in Live!

Get 1:1 Help Now