SEA
SEA

Reputation: 23

backup reg hives

Using http://support.microsoft.com/kb/240184 I'm able to open SAM, SOFTWARE, SYSTEM reg hives, but I do not know the next step to get them copied in a different backup folder? I get Access Denied when I try to use BackupRead API. Any help is much appreciated!

Upvotes: 0

Views: 425

Answers (1)

MSalters
MSalters

Reputation: 180145

BackupRead is not a magical function that lets you read any file. For starters, you need to run as a user with backup privilege. Secondly, you must respect the FilesNotToBackup registry key. You also have to call CreateFile with FILE_FLAG_BACKUP_SEMANTICS. But even with that in mind, I'm not sure if it's the bets way to backup the registry.

Upvotes: 2

Related Questions