/build/static/layout/Breadcrumb_cap_w.png

How do I import IE11 registry file in Post-installation Tasks ?

I have exported my desired IE11 settings to a registry file called "IE11config.reg" for my "Gold Image" of Win10 LTSB 2016 v1607.  I would like to import the file as a Post-installation Task.  What is the correct procedure and/or commands to accomplish this ?  We are currently on K2000 v6.0.425.

1 Comment   [ + ] Show comment
  • I have tried multiple BAT or APP command lines...
    1) regedit /s IE11config.reg
    2)COPY C:\Windows\regedit.exe C:\KACE\Applications\305
    regedit.exe /s IE11config.reg
    3) %WINDIR%\regedit.exe /s IE11config.reg
    4) reg import IE11config.reg

    ALL have stated they could not locate the file regedit.
    All these commands work in a CMD screen on my local desktop but not in K2000...WHAT AM I MISSING ??? - CGonza 5 years ago

Answers (2)

Posted by: vjaneczko 5 years ago
9th Degree Black Belt
0
Depending on the key being HKLM or HKCU, you can easily use this command:

regedit /s RegFileName.reg


Just make sure to scrub the REG file of anything specific to the user account, computer, domain or IP config.  Otherwise you can break a lot of stuff.  Had one client years ago distribute a REG key which contained the IP address of the test computer and next morning, everyone logged in and got the same IP address - no one would work for hours!


Comments:
  • OK...the issue is when the Post-installation Task launches the task to import the IE11 registry file, it cannot locate REGEDIT.EXE; it's looking for it in the same folder where the IE11config.reg file is located.
    <WorkingDirectory>%systemdrive%\KACE\Applications\305</WorkingDirectory>. How do I get REGEDIT.EXE in that same folder ? - CGonza 5 years ago
  • I created the following BATCH Post-installation Task:
    COPY C:\Windows\regedit.exe C:\KACE\Applications\305
    regedit.exe /s IE11config.reg
    I will confirm shortly is settings were retained... - CGonza 5 years ago
    • Best not to copy files within the local hard drive if you don't have to. Try using "%WINDIR%\regedit.exe /s IE11config.reg" as the commandline so you don't have to copy the file. - vjaneczko 5 years ago
Posted by: CGonza 5 years ago
Senior White Belt
0
This was the ONLY successful way I could get the registry merge to occur in K2000...
BAT script:

COPY C:\Windows\regedit.exe C:\KACE\Applications\309
regedit.exe /s IE11config.reg

It works; I just have to keep track if any changes are made which will change the directory name; currently #309...it was #305 last time.
 
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