/build/static/layout/Breadcrumb_cap_w.png

Copy current user key to all users and future ones

Is there already a solution available that copies a current user reg file to all users and future users?

It's because I have a software deployment that must be made and 2 current users keys that must be added but for all users. A big thanks!

 


0 Comments   [ + ] Show comments

Answers (3)

Posted by: dj_xest 10 years ago
5th Degree Black Belt
0

There is a widely known Active Setup to help you with this kind of problem.


Comments:
  • mmm, let me have a look - kingskawn 10 years ago
  • Or you could write a scheduled task that lists all your users on a machine and then writes the required values to all new users on your machine.

    But Active setup (or even just advertised shortcuts with correct placement of the regkeys in user-components) is easier. The shortcut checks if all components of the application are present at start of the application and if not installs the missing user parts. - EVEEN 10 years ago
Posted by: tecrumors 10 years ago
6th Degree Black Belt
0

Config of an Active Setup via CMD

if not exist "%systemdrive%\Active Setup" md "%systemdrive%\Active Setup"

if not exist "%systemdrive%\Active Setup\%AppName%" md "%systemdrive%\Active Setup\%AppName%"

rem copy /y "%~dp0[File.Ext]" "%systemdrive%\Active Setup\%AppName%\[File.Ext]" >>"%LogFile%"

copy /y "%~dp0UserInstall.cmd" "%systemdrive%\Active Setup\%AppName%\UserInstall.cmd" >>"%LogFile%"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\%AppName%" /v "StubPath" /t REG_SZ /d "\"%inst%\Active Setup\%AppName%\UserInstall.cmd\"" /f


Comments:
  • Does anybody have any suggested reading materials about Active Setup ?
    Currently we pay an external person to do all out packages I'd like to know a little more - accesser 10 years ago
    • Have a look at http://www.itninja.com/blog/view/appdeploy-articles-activesetup or http://blogs.msdn.com/b/aruns_blog/archive/2011/11/02/10176957.aspx
      I used these two articles and that's pretty much it, it's not that trickey to do. - olditguy 10 years ago
Posted by: wakwarsi 10 years ago
White Belt
-1

You can copy the "ntuser.dat" file from the profile to "default users" profile for this. This will retain the application setting for new user who logs in.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ