How do i copy a file to the application data in all user profiles?

I have a config file that i need to put in C:\Documents and Settings\USERID\Application Data\Sun\Java\Deployment on all users. Trying to figure it a good way to do it seeing how there is no application data in the all users profile.

thanks!
breezy1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

khaledfCommented:
it should be in the  "default user" profile,,,, this profile is hidden so you will need to show hidden files first
hope this helps
0
khaledfCommented:
on more thing, the default user profile is used when a new user account is logged to the machine. otherwise you will need to add the config file manually for existing user profiles.
0
breezy1Author Commented:
hmm but the default user profile will have no impact on profiles already created right?
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

khaledfCommented:
thats right
0
MightySWCommented:
Try this,
 
Copy the file to the Netlogon dir and then change the login script by adding this:


cop "%LOGONSERVER%\netlogon\"filename.xxx" %userprofile%\Application Data\Sun\Java\Deployment

That should work.
0
MightySWCommented:
Sorry...

copy "%LOGONSERVER%\netlogon\"filename.xxx" %userprofile%\Application Data\Sun\Java\Deployment

Or just do the strait copy command with: %userprofile%\Application Data\Sun\Java\Deployment.

You can also do a batch file that does the changes directories, copies, etc...

Hope this helps
0
breezy1Author Commented:
great thanks. and would i be able to somehow make it only run for a person and not do it every time they log in?
0
MightySWCommented:
Well that will run for every person.  Once it is complete then take the copy out of the login script.  

The default for the copy command in a batch file is to ignore if the file is already there.

If you want to only do it for specific users then create a different login script and define the different user's login scripts to be used under active directory users and computers.

Hope this helps
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
breezy1Author Commented:
WIll need it to run for every user, and then all users who come in in the future.. This script is replacing a file that currently exists.
0
MightySWCommented:
Yes, for that edit your default user profile.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.