RegLoadKey
Load Registry Hive
Definition
Use this command to create a subkey in HKEY_USERS or HKEY_LOCAL_MACHINE and to load the registry information from the specified file into this subkey.
If you edit the loaded registry key the loaded file is changed as well.
In case an error occurs when running this command, you can specify the option Stop script on error in the Script Editor. If the error actually occurs, the script stops, thus preventing subsequent errors, and the associated policy is shown as not compliant.
This also applies if you set the package property Error handling to Always terminate script on error (a default setting for new packages).
Settings
Input
- Registry
key
Enter the key you want to store the registry information in. - File
name
Enter the name of the file containing the registry information.If you are using the FAT file system the file must not have a file extension.