JSI Tip 8183. When you run 'reg restore Rootkey[\Key] FileName.hiv', you receive 'Access Denied'?

Jerold Schulman

June 22, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today


If you run:

reg save RootKey Filename.hiv,

where RootKey is HKLM, HKCU, HKCR, HKU, or HKCC, and subsequently run:

reg restore Rootkey[Key] FileName.hiv,

you receive an Access Denied error message.

To workaround this behavior, use:

reg restore \%ComputerName%Rootkey[Key] FileName.hiv



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like