The issue is the vd for exchange 2010 powershell default web site has been removed but will not allow recreation.
I have a single exchange 2010 sp3 server running on latest windows 2012 r2 and has been for months until the local admin deleted the Exchange configuration object out of AD using ADSI. There are no system states for the 2 windows 2012 r2 dc's.
ALso, have recently installed a exchange 2013 sp1 cu10 to the same orgngle server ( No DAG) into the same Exchange org. with the same account used to recreated exchange 2010.
Note: WHen i reinstalled exchange 2010 sp3 from the deletion, it had powershell vd and they worked just fine. The next day they stopped working, thus remove /recreating powershellvirtualdirectory.
Actions:
I have uninstalled/reinstalled IIS,WAS, Exchange cas role
Rerun all preqrequsites scripts to make sure all was installed correctly, installed filter packs, umca.
I still can not create the 'PowerShell ( Default Web Site)' under the default or any other website.
I can create the site 'PowerShell ( Default Web Site) (Default Web Site)' and of course that doesnt work, although i will tell you when I create the latter. The MSExchangePowerShellapppool is created and has the correct perms.
I have removed all the history apphost.config files, removed all mention of powershell from the current apphost.config,
ran IISreset /noforce, restarted web sites and pools and rechked before run the one liner below.
'New-PowerShellVirtualDirectory -name 'PowerShell' -requiressl:$false -verbose -debug"
with the following results:
PS C:\Windows\system32> New-PowerShellVirtualDirectory -Name "PowerShell" -RequireSSL:$false -Verbose
VERBOSE: [17:30:31.719 GMT] New-PowerShellVirtualDirectory : Active Directory session settings for
'New-PowerShellVirtualDirectory' are: View Entire Forest: 'True',
VERBOSE: [17:30:31.735 GMT] New-PowerShellVirtualDirectory : Runspace context: Executing user:
lgsco.com/Users/Administrator, Executing user organization: , Current organization: , RBAC-enabled: Disabled.
VERBOSE: [17:30:31.735 GMT] New-PowerShellVirtualDirectory : Beginning processing New-PowerShellVirtualDirectory
VERBOSE: [17:30:31.735 GMT] New-PowerShellVirtualDirectory : Instantiating handler with index 0 for cmdlet extension
agent "Admin Audit Log Agent".
VERBOSE: [17:30:31.735 GMT] New-PowerShellVirtualDirectory : Current ScopeSet is: { Recipient Read Scope: {{, }},
Recipient Write Scopes: {{, }}, Configuration Read Scope: {{, }}, Configuration Write Scope(s): {{, }, }, Exclusive
Recipient Scope(s): {}, Exclusive Configuration Scope(s): {} }
VERBOSE: [17:30:31.750 GMT] New-PowerShellVirtualDirectory : Searching objects "lgs41.lgsco.com" of type "Server" under
the root "$null".
VERBOSE: [17:30:31.766 GMT] New-PowerShellVirtualDirectory : Previous operation run on domain controller
'LGS3a.lgsco.com'.
VERBOSE: [17:30:31.766 GMT] New-PowerShellVirtualDirectory : Processing object "LGS41\PowerShell".
VERBOSE: [17:30:33.641 GMT] New-PowerShellVirtualDirectory : Admin Audit Log: Entered Handler:Validate.
VERBOSE: Creating the Windows PowerShell virtual directory "PowerShell" on the server "lgs41.lgsco.com".
VERBOSE: [17:30:33.641 GMT] New-PowerShellVirtualDirectory : Resolved current organization: .
VERBOSE: [17:30:41.391 GMT] New-PowerShellVirtualDirectory : Admin Audit Log: Entered Handler:OnComplete.
New-PowerShellVirtualDirectory : An error occurred while creating the IIS virtual directory
'IIS://LGS41.lgsco.com/W3SVC/1/ROOT/PowerShell' on 'LGS41'.
At line:1 char:1
+ New-PowerShellVirtualDirectory -Name "PowerShell" -RequireSSL:$false -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (LGS41\PowerShell (Default Web Site):ADObjectId) [New-PowerShellVirtua
lDirectory], InvalidOperationException
+ FullyQualifiedErrorId : 90FFFCD3,Microsoft.Exchange.Management.SystemConfigurationTasks.NewPowerShellVirtualDire
ctory
VERBOSE: [17:30:41.407 GMT] New-PowerShellVirtualDirectory : Ending processing New-PowerShellVirtualDirectory
I can not figure it out..
If there is more info needed let me know, I will provide it.
I am hoping for help from senior members of the community.