Solved

Save a registry branch to file without admin privileges?

Posted on 2006-11-15
4
311 Views
Last Modified: 2013-11-20
Is it possible to use MFC to save a registry branch ( HKEY_CURRENT_USER\Software\XXX\YYYY ) to a file if the user running the program does not have administrative privileges? The program currently uses ::RegSaveKey( hKey, fileName, NULL ) but this fails when it is run on a non-admin account (because SetPrivilege can't adjust SE_BACKUP_NAME, right?). Ultimately, the saved registry data needs to be re-loaded on a different machine with a different program (also MFC) so the file has to be something MFC can deal with.
0
Comment
Question by:rosenav
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 17950067
Any non-admin can have 'SE_BACKUP_NAME', that is not the point. However, it has to be granted to the account before you can enable it.
0
 
LVL 86

Expert Comment

by:jkr
ID: 18004465
This question is answered. Furthermore, there was over a week of time to ask if something was unclear.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 157
iSeries DB2 Query 2 95
while loop over for loop 7 104
Line meaning 9 86
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question