?
Solved

Save a registry branch to file without admin privileges?

Posted on 2006-11-15
4
Medium Priority
?
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

762 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