AppCmd backup for IIS7 gives access denied error (hresult:80070005)

Posted by TruMan1 on Server Fault See other posts from Server Fault or by TruMan1
Published on 2010-04-06T18:08:19Z Indexed on 2012/11/28 23:06 UTC
Read the original article Hit count: 2607

I have a script I have been using on another Windows 2008 to delete the IIS7 backup of configs and create a fresh one:

SET DEST=C:\Backup\Web\IIS7
SET BACKUPNAME=IIS7-CONFIGS
%windir%\system32\inetsrv\appcmd.exe delete backup "%BACKUPNAME%"
%windir%\system32\inetsrv\appcmd.exe add backup "%BACKUPNAME%"
robocopy %windir%\system32\inetsrv\backup "%DEST%" /MIR /R:6 /W:10 /ZB

But on a new Windows 2008 server, I get an access denied on the delete:

ERROR ( hresult:80070005, message:Command execution failed.
Access is denied.
 )

I have UAC turned off and pretty much copied all the settings from the old server (including user role being an admin). What am I missing?

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about backup