Error while stopping/starting apppool


while trying to stop or start the IIS apppool via octopus getting below error.
0:01:44 Error | start-webitem : Access is denied. (Exception from HRESULT: 0x80070005
10:01:44 Error | (E_ACCESSDENIED))
10:01:44 Error | At C:\Octopus\Work\20181015140133-609\Script.ps1:8 char:1
10:01:44 Error | + Start-WebAppPool $appPoolName
10:01:44 Error | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10:01:44 Error | + CategoryInfo : InvalidData: (IIS:\apppools\m…
10:01:44 Error | String) [Start-WebItem], UnauthorizedAccessException
10:01:44 Error | + FullyQualifiedErrorId : InvalidOperation,Microsoft.IIs.PowerShell.Provid
10:01:44 Error | er.StartItemCommand
10:01:44 Verbose | Adding journal entry:
10:01:44 Verbose |
10:01:44 Verbose | Updating manifest with output variables
10:01:44 Verbose | Updating manifest with action evaluated variables
10:01:44 Fatal | The remote script failed with exit code 1

please help me to resolve this issue.

Hi Rajesh,

Thanks for getting in touch! I’m sorry to hear you’re hitting this access denied error. Are you using the built-in IIS step? Could you confirm that the user your Tentacle runs under has proper permissions on the IIS server? If not, would you be able to perform a quick test by adding the account to the administrators group and restarting?

If you’re unable to grant these permissions, you may have to use feature delegation to allow non-admins to perform certain actions as outlined in Microsoft’s documentation.

I hope this helps! Let me know how you go.

Best regards,


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.