The following key is in a registry hive that is not valid: "{0}". The key must be in one of the following hives: HKEY_LOCAL_MACHINE, ...

The following key is in a registry hive that is not valid: "{0}". The key must be in one of the following hives: HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, HKEY_USERS, or HKEY_CURRENT_CONFIG. Make sure that the Key parameter contains a valid key. Then, run the command again.