Solved

Save a registry branch to file without admin privileges?

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

729 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