https://github.com/thedxt/registry-check-setter
A script to check and set or correct registry settings
https://github.com/thedxt/registry-check-setter
powershell registry windows
Last synced: 2 months ago
JSON representation
A script to check and set or correct registry settings
- Host: GitHub
- URL: https://github.com/thedxt/registry-check-setter
- Owner: thedxt
- Created: 2024-04-13T15:42:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T16:20:14.000Z (about 2 years ago)
- Last Synced: 2025-06-04T20:17:14.141Z (about 1 year ago)
- Topics: powershell, registry, windows
- Language: PowerShell
- Homepage: https://thedxt.ca/2024/04/registry-check-setter/
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Registry Check Setter
A PowerShell script to check registry settings and set them if they don't exist or correct them if they do exist.
- If the registry key path doesn't exist it will create it and all the settings
- If the registry key path does exist it will move on to check if the registry value name exists
- If the registry value name doesn't exist it will create it with the needed settings
- If the registry value name exists it will check if the registry value is correct
- If the registry value is correct it exists
- If the registry value is not correct it corrects it and exists.
- Depending on the Registry setting you are checking or settings you may need to run as an admin or system
> [!IMPORTANT]
> The `-reg_type` must be defined the only valid options are `Binary`, `DWord`, `ExpandString`, `MultiString`, `String`, and `QWord`
[More detailed documentation](https://thedxt.ca/2024/04/registry-check-setter/)
> [!TIP]
> ## Examples
>
> `reg-check-set -reg_path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -reg_name "TargetReleaseVersion" -reg_type dword -reg_value "1"`
>
> `reg-check-set -reg_path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -reg_name "TargetReleaseVersionInfo" -reg_type string -reg_value "22H2"`
>
> `reg-check-set -reg_path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -reg_name "ProductVersion" -reg_type string -reg_value "Windows 10"`
>
> `reg-check-set -reg_path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -reg_name "NoAutoUpdate" -reg_type dword -reg_value "1"`