I had to recover a recovery key to open a .MIG file that was migrated but then not restored by restoring a DB backup as the Computer Association was removed. I'm using SCCM 2012 R2 and USMT 6.3 to load.
Normally when I need to manually restore a .MIG file, I use loadstate and the key copied from the View Recovery Information on the Computer Association. That works fine. However, in this case, since I am grabbing the key from the State Migration table, it is much, much longer. So I copied that into a txt file and am pointing loadstate (and trying usmtutils.exe) to that file. Loadstate fails after trying to open the hive.
Here are the commands I am trying:
usmtutils /extract c:\usmt\usmt\usmt.mig c:\extract /decrypt /keyfile:key.txt
loadstate.exe c:\ /decrypt /keyfile:key.txt /v:5
usmtutils gives me: "The store could not be decrypted"
The error in loadstate.log is: [0x0803d9] IndirectKeyMapper: RegLoadKey(HKEY_USERS,S-1-5-21-3907391914-2315691609-2623957077-1846,C:\Users\MEC\NTUSER.DAT) failed (3)
Is there something different that needs to done when using a keyfile instead of the key that can be pasted from the computer association but is not so long to which it exceeds the limit for a command prompt command?