Windows 2003 64-bit
Exchange 2007 single server install
The OWA virtual directory is fried for our Exchange 2007 install, so I have removed it and am attempting to recreate it with this command:
New-OWAVirtualDirectory -OWAVersion "Exchange2007" -Name "owa (Default Web Site)"
That command fails with this error:
New-OwaVirtualDirectory : An error occurred while creating the IIS virtual directory 'IIS://<myserver>.<mydomain>.local/W3SVC/1/ROOT/owa' on '<myserver>'.
At line:1 char:24
+ New-OWAVirtualDirectory <<<< -OWAVersion "Exchange2007" -Name "owa (Default Web Site)"
+ CategoryInfo : InvalidOperation: (<myserver>\owa (Default Web Site):ADObjectId) [New-OwaVirtualDirectory] InvalidOperationException
+ FullyQualifiedErrorId : AA7EA23E,Microsoft.Exchange.Management.SystemConfigurationTasks.NewOwaVirtualDirectory
Nearly every post I find regarding this error indicates that IIS is not in 64-bit mode and to run this command:
cscript c:\inetpub\adminscripts\adsutil.vbs SET /w3svc/AppPools/Enable32BitAppOnWin64 False
I run the command, then run iisreset, and then try to re-create the OWA directory again and it still fails with the same error.
I have run the metabase explorer to make sure owa is cleaned up there ( it is gone ) and adsiedit ( it is also gone from there ).
Any help would be GREATLY appreciated.