How can I find out how to change a specific configuration through command lines.


rafaelsouzams

Member
Local time
9:41 PM
Posts
7
OS
Windows 11
Hello everyone, everything good?
I was researching ways to automate my Windows configuration, so that when I run a BAT or PS1 file, it makes all the settings I like on my system.

I've already found several keys with the help of ChatGPT and Copilot, but there are several others that I can't find, that's when I found this forum and realized that this is a very frequent topic here, there are several posts teaching how to activate or deactivate something through the command.

So I wanted to know, how do you manage to find the commands to activate so many settings? Is there any tool capable of identifying where a registry key for a configuration is located?

For example, in Settings > Account > Sign-in Options, there is an option called "To increase security, only allow Windows Hello sign-in for Microsoft accounts on this device (Recommended)", and I would like to include disabling this option in my script.

This is just an example of something that I didn't find on the forum, but there are several other small settings that I would like to include in my script as well, so I would like to learn an efficient way of finding out how to activate or deactivate certain functions through a command line, instead of passing a list and hoping someone can answer them all.

It is possible?
 
Windows Build/Version
Windows 11

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Core i9 10900
    Motherboard
    Asus Z490-H Gaming
    Memory
    64gb
    Graphics Card(s)
    RTX 4070TI
    Hard Drives
    Samsung Evo 970 1Tb
These settings changes are generally in the registry. A simple way to track them down is to use Nir's RegistryChangesView utility. You take a snapshot before changing the setting, change the setting, and then compare it with a snapshot taken afterward. The utility shows you everything that was changed between the two snapshots, and it will even export out to a .reg file.

Then, if you want it in PowerShell format, you could paste the desired registry entries into Registry to PowerShell converter.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
And do keep in mind that Version Upgrades and Build updates to them may set everything back to an as-installed default, remove customizations, and get to do them anew. Also involved is whether things like in the old Control Panel may have been moved to Settings, usually affects how things are done to accomplish a task.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Wow, that's exactly what I needed, thank you very much!
With this utility I was able to identify several keys! Thank you very much.

Taking advantage of the same key that I provided in my example, I was unable to identify it exactly with this app. He even showed some keys that could be related to the option of not requiring Windows Hello for login, but when manually changing the key in the registry editor to test, nothing happened.

1711826946228.png

Sorry for the trouble, but could anyone identify the correct key so I can change it using PowerShell?
I have been using the Set-ItemProperty -Path command to create my script, I will leave a list below with the keys that I found useful, in case anyone wants to use them too!

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Core i9 10900
    Motherboard
    Asus Z490-H Gaming
    Memory
    64gb
    Graphics Card(s)
    RTX 4070TI
    Hard Drives
    Samsung Evo 970 1Tb
Can't help, English site, can't read other languages.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Can't help, English site, can't read other languages.
I pasted the wrong text, sorry

I already edited it with the text in English!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Core i9 10900
    Motherboard
    Asus Z490-H Gaming
    Memory
    64gb
    Graphics Card(s)
    RTX 4070TI
    Hard Drives
    Samsung Evo 970 1Tb
Back
Top Bottom