Lets see how to recreate a Powershell Virtual Directory in a Single Exchange Server Environment.
Note : Do not do this if you have multiple Exchange Servers in the Environment. As you might end up with an Error – Powershell already Exists
At times we had to recreate this Power shell virtual Directory when it goes corrupted or when wrong customizations done and you might end up in a Exchange Management Console issue. So recreating will be the last option.
Before Proceeding – Make sure you are able to run “New-PowershellVirtualDirectory” Cmdlet – Type “New-Po” and Then press your TAB key it should resolve your command
make sure it Returns the Existing PowerShellVirtualDirectory
Get-PowerShellVirtualDirectory | Fl Server,Id*
Get the identity
Remove-PowerShellVirtualDirectory "Exchange2010\PowerShell (Default Web Site)"
New-PowerShellVirtualDirectory -Name Powershell -RequireSSL:$False
Then,Run iisReset in Cmd prompt to refresh things
Browsing the PowershellWebsite should give you 401.0 Access Denied –(Default)
Powershell Default Page