I am installing an application that has a configuration file that it stores in each users appdata\Roaming folder on Windows 7. I want to copy a file over after the installation that already has the configuration settings. I can do this for one user at a time, but I need to be able to get it copied to all users.

I can put it in the Default User profile and that will copy it to any new profiles on each machine, but not existing profiles. The Public profile which works for desktop shortcuts and documents and that sort of thing has no appdata folder.

Any help would be greatly appreciated.

Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


use Active Setup and it is the best way to do it. have been sugesting it for years now.


~Piyush Nasa

~My Blog:  http://msiworld.blogspot.com/

Answered 04/14/2013 by: piyushnasa
Red Belt

  • I tried this this morning and it creates the entry under HKCU but does not bring over the StubPath or run the batch script that I pointed it to. I am new to this, not sure if I am doing something wrong.
Please log in to comment



I think it can be achieved through vbscript. ( Not sure if we run script from KACe console) .


Answered 04/14/2013 by: rock_star
Black Belt

Please log in to comment

Do you have any advertised shortcut in your application?

Answered 04/15/2013 by: jagadeish
Red Belt

Please log in to comment

The "all users" profile is technically C:\ProgramData

the system profile is C:\Windows\System32\config\systemprofile

I would recommend what piyushnasa says or add an xcopy command to login script in domain for those users.

Answered 04/15/2013 by: SMal.tmcc
Red Belt

  • I looked in the system profile in the path you provided and the file I need all users to have is there, but it is not loading in the profile for users in their appdata folder.
    • sorry crossed my thoughts eariler, reread answer
  • Yeah, the ProgramData folder will work for new users who log into the machine but does not do anything for existing users. My boss would rather I take care of all of this using KACE rather than use a login script, so I am trying to find a good way to get it done.
    • if the file is not needed till they run the program, you can run a k1000 script to push out the file to the current users profile after login.

      The best thing would be to get piyushnasa to work with you to get the bugs out of active setup.

      We use kix scripting here for things like this.
    • Post a new question about active setup help and include your HK commands you are trying to use. There are a few experts on ActSetup on this site.
  • Have a look at this blog post http://www.itninja.com/blog/view/appdeploy-articles-activesetup
    It covers most of what you need to know.
  • I got Active Setup working. I think there was a comma instead of a dot in the stub path. Thanks for all the help.
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja