Windows 10: What is the best way to auto-set some registry keys during install? Solved


  1. Posts : 9
    10 Pro x64 (1803)
       10 Apr 2018 #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 ComputerSystem Spec

  2. Masterchiefxx17's Avatar
    Posts : 418
    Windows 10 Professional 64bit
       10 Apr 2018 #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 ComputerSystem Spec

  3. topgundcp's Avatar
    Posts : 2,438
    Ubuntu14.04x64 MintMate17x64 Win10Prox64
       11 Apr 2018 #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)

    Click image for larger version. 

Name:	p1.jpg 
Views:	1 
Size:	119.8 KB 
ID:	184254
      My ComputerSystem Spec


  4. Posts : 9
    10 Pro x64 (1803)
    Thread Starter
       11 Apr 2018 #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 ComputerSystem Spec

  5. Kari's Avatar
    Posts : 15,037
    Windows 10 Pro
       13 Apr 2018 #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 ComputerSystem Spec


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

    Kari said: View Post
    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 ComputerSystem Spec


 

Related Threads
Deleted wrong registry keys in General Support
Just upgraded to Win10 from 7 and didn't create a restore point before I started to fix a network adapter problem. Regretting it now. Found a solution to my problem that included deleting the Config key in...
Solved Missing Registry keys for Auto run in Drivers and Hardware
I have Windows 10 operating system. For some unknown reason I have no auto run when I insert a CD/DVD into my drive or when using my USB external hard drives and memory sticks. I believe I have had something happen to my registry as I think there...
Hello, I went around searching for a setting through the registry and left a mess with dozens of open keys and sub keys. Is there a key within the registry I can delete that will restore all keys to there original collapsed/closed state?
Solved Multitasking Settings Registry keys in Performance & Maintenance
Hey all, I am creating a heap of reg files for personal use so that when i format in the future, i can run a script to set windows 10 just how i want. I am having an issue finding any registry key linked to the following option System -...
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 05:56.
Find Us