Solved

Save a registry branch to file without admin privileges?

Posted on 2006-11-15
4
304 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 114
Process filename extension 3 156
countEvens challenge 2 58
firstChar challenge 13 83
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now