Exchange 2007: IIS Access Denied

[PS] C:\Windows\System32>Get-ExchangeCertificate
Get-ExchangeCertificate : Unable to create Internet Information Services (IIS)
directory entry. Error message is: Access is denied.
. HResult = -2147024891.
At line:1 char:23
+ Get-ExchangeCertificate <<<<

On a machine running Exchange Server 2007 SP1 and Windows Server 2008, this error appears despite the fact that the PowerShell cmdlet is executed using an log-in account with Domain Admins membership. A similar error occurs with the following cmdlet:

[PS] C:\Windows\System32>Get-WebServicesVirtualDirectory
Get-WebServicesVirtualDirectory : Unable to create Internet Information Service
s (IIS) directory entry. Error message is: Access is denied.
. HResult = -2147024891.
At line:1 char:31
+ Get-WebServicesVirtualDirectory <<<<
[PS] C:\Windows\System32>

To resolve this issue, explicitly start the Exchange Management Shell (EMS) with the “Run as administrator” option.

Technorati tags: Windows Server 2008, Exchange Server, PowerShell

No Comments »

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.