Generic Registry Editor
Summary
This script will create or modify the registry for multiple keys, names, values, and types.
Sample Run

Variables
| Name | Description |
|---|---|
| psout | Contains the status of whether the registry was set or not |
User Parameters
| Name | Example | Required | Description |
|---|---|---|---|
| Keys | 'HKLM://SYSTEM//CurrentControlSet//Control', 'HKLM://SOFTWARE//Policies//Microsoft' | True | The list of registry keys that need to be created or modified. It is required to put registry keys inside single quotes and separate them by commas. |
| Names | 'LsaCfgFlags', 'LsaCfgFlags' | True | The list of names that need to be created or modified. It is required to put names inside single quotes and separate them by commas. |
| Values | '0', '0' | True | The list of values that need to be created or modified. It is required to put values inside single quotes and separate them by commas. |
| Types | 'DWORD', 'STRING' | True | The list of types that need to be created or modified. It is required to put types inside single quotes and separate them by commas. The various types are: String, ExpandString, Binary, DWord, MultiString, QWord |
Output
- Script log
FAQ
-
What are the various property types and what do they stand for?
The various property types are: String, ExpandString, Binary, DWord, MultiString, QWord.
They stand for:- String: Equivalent to REG_SZ in the Windows Registry.
- ExpandString: Equivalent to REG_EXPAND_SZ in the Windows Registry.
- Binary: Equivalent to REG_BINARY in the Windows Registry.
- DWord: Equivalent to REG_DWORD in the Windows Registry.
- MultiString: Equivalent to REG_MULTI_SZ in the Windows Registry.
- QWord: Equivalent to REG_QWORD in the Windows Registry.
-
Does the length of the parameters need to be the same for the script to work?
Yes, the parameters must be of the same length.
For example: If you provide two keys for modification, you must also provide two names, two values, and two types, regardless of whether any of the parameters have the same value or not.
Changelog
2025-04-10
- Initial version of the document