What is the best way to auto-set some registry keys during install?


  1. Posts : 9
    10 Pro x64 (1803)
       #1

    What is the best way to auto-set some registry keys during install?


    So I have a few registry keys I would like to set (via reg add) during Windows install. What is the best way to go about doing this? Ideally I would like them set during the first post-install launch (OOBE?).

    I have been looking at unattended install options and it is obviously possible to do what I want but it seems quite complicated and I am unclear if I need to automate the whole install process or not?

    What I want to do is set the PreventDeviceEncryption registry entry to true so that BitLocker doesn't kick in automatically. I have an OPAL SED and would prefer to avoid BitLocker if possible.

    Many thanks!
      My Computer


  2. Posts : 516
    Windows 10 Professional 64bit
       #2

    Are you doing this for a business? How are you going about installing the operating system?

    If you are using System Center Configuration Manager or MDT, you could just inject a PowerShell script into the deployment package and have the deployment/image run the registry PowerShell injection script.

    If you are doing this for a home reason or local business, I would look at setting up a PowerShell to be ran at first startup. You could go about editing your Windows install to do this or more ideally just run the script when setting up the PC.
      My Computer


  3. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #3

    Download WinTookit: Downloads - WinCert.net Forums
    Run and click on Intermediate->WIM Manager then browse for Install.wim from the installation media (USB/SSD/HD). Click On Mount
    Click on Advanced->WIM Registry Editor
    Import the reg file(s) into the registry hive. Save Change(s)

    What is the best way to auto-set some registry keys during install?-p1.jpg
      My Computer


  4. Posts : 9
    10 Pro x64 (1803)
    Thread Starter
       #4

    Thanks for the replies.

    This is just for my home computer. I got a new laptop with an OPAL SED but Windows insists on automatically enabling BitLocker as well!
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
       #5

    No need for third party tools, editing registry on an offline image is pretty easy: DISM - Edit Registry on an Offline Image Windows 10 Tutorials

    Kari
      My Computer


  6. Posts : 9
    10 Pro x64 (1803)
    Thread Starter
       #6

    Kari said:
    No need for third party tools, editing registry on an offline image is pretty easy: DISM - Edit Registry on an Offline Image Windows 10 Tutorials

    Kari
    Thanks Kari. That is quite a bit of work for what I hoped would be a lot simpler. Not sure I can be bothered doing all that. Think I will stick to just manually running a batch file when I first login with the changes I want to me
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:39.
Find Us




Windows 10 Forums