hey people.

I have a reg file I would like to add to my post

install tasks.

I have a reg file I exported from my user profile

and I would like to deploy it to all pc and make

it the default registry settings for all users.

What would be the easiest way to go about this?

Thanks all.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
I use a batch file to load the default user registry hive and then import the settings. You need to modify the exported registry keys to point to the path that will be there when the hive is loaded. Here is an example that turns on the Excel Analysis toolpak.
Batch File:
reg load HKU\Def c:\users\default\ntuser.dat
:CheckOS
IF "%PROCESSOR_ARCHITECTURE%"=="x86" (GOTO 32BIT) else (GOTO 64BIT)
:32BIT
reg import "excel-analysistoolpak-x86.reg"
GOTO END
:64BIT
reg import "excel-analysistoolpak-x64.reg"
GOTO END
:END
reg unload HKU\Def
Registry file for x86:
Windows Registry Editor Version 5.00

[HKEY_USERS\Def\Software\Microsoft\Office\15.0\Excel\Options]

"OPEN"="/R \"C:\\Program Files\\Microsoft Office\\Office15\\Library\\Analysis\\ANALYS32.XLL\""

"OPEN1"="/R \"C:\\Program Files\\Microsoft Office\\Office15\\Library\\Analysis\\ATPVBAEN.XLAM\""
Place the files in a zip archive and upload them as an application post install task. The parameters for the task is the name of the batch file that loads the keys, I normally call mine loadkeys.cmd.

Answered 03/10/2016 by: chucksteel
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share