Re: CreateVssBackupComponents access denied ?
- From: IEURO <IEURO@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 18:37:01 -0700
<Mark> Have you been able to create a shadow copy while running as a standard
user on Vista when UAC is
turned on?
<IEURO> No, it's impossible to run as a standard user on Vista.
I has the same program like your before. At this moment, my program can
support backup and restore snapshot operation on Windows Vista.
You can read this artical in codeproject "Making Your Application UAC Aware"
(http://www.codeproject.com/vista-security/MakingAppsUACAware.asp) . It's
very helpful for requesting administrative permission.
"Mark Beiley" wrote:
Thank you. I tried this before, but it didn't change the result. If I call.
CreateVssBackupComponents() as a user with a standard token, it returns
access denied. It works fine when I run the program as an administrator. I
notice in your other thread you are using VSS also. Have you been able to
create a shadow copy while running as a standard user on Vista when UAC is
turned on?
Thanks,
Mark
--
Beiley Software
http://www.beiley.com
"IEURO" <IEURO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8407F3E6-E256-443C-93C7-01839BFEF336@xxxxxxxxxxxxxxxx
You need to enable the backup privilege when doing backup operation.
Therefore, it also need to enable restore privilege when doing restore
operation. You can read the "Setting the Backup and Restore Privileges"
artical in http://msdn2.microsoft.com/en-us/library/Aa387705.aspx .
"Mark Beiley" wrote:
I'm using VSS, and when I call CreateVssBackupComponents() under Vista
with
UAC turned on, I get an access denied error. MSDN just says this about
this
error:
"The caller does not have sufficient backup privileges or is not an
administrator."
Is my only option to run my application as an administrator? My
application
is currently manifested just as a standard user (asInvoker). What are
the
"sufficient backup privileges"? Is there any way to use
CreateVssBackupComponents() as a standard user?
Thanks,
Mark
--
Beiley Software
http://www.beiley.com
- References:
- CreateVssBackupComponents access denied ?
- From: Mark Beiley
- RE: CreateVssBackupComponents access denied ?
- From: IEURO
- Re: CreateVssBackupComponents access denied ?
- From: Mark Beiley
- CreateVssBackupComponents access denied ?
- Prev by Date: Re: return from a gets() eithou pressing enter?
- Next by Date: RE: When does GetCurrentDirectory fail to return a drive letter?
- Previous by thread: Re: CreateVssBackupComponents access denied ?
- Next by thread: Open a stream/attribute of an file with ZwCreateFile by ReferenceNumber
- Index(es):
Relevant Pages
|