Get-OwaVirtualDirectory Set-OWAVirtualDirectory -Identity "cas\owa (Default Web Site)" -BasicAuthentication $true Set-owavirtualdirectory -identity "cas\owa (Default Web Site)" -FormsAuthentication:$true New-OWAVirtualDirectory -WebSiteName "FBA" Enable the Basic authentication via running the following command: Set-OWAVirtualDirectory -Identity "yourservername\owa (FBA)" -BasicAuthentication $true Restart the IIS admin service in services.msc Set-OwaVirtualDirectory "SERVERNAME\owa (Default Web Site)" -LogonFormat fulldomain Set-EcpVirtualDirectory -Identity "cas\ecp (Default Web Site)" -Basicauthentication:$true Set-EcpVirtualDirectory -Identity "cas\ecp (Default Web Site)" -Basicauthentication:$false https://cas.temp.local/ecp/logoff.aspx?src=exch&url=https%3A%2F%2Fcas.temp.local%2Fecp%2F --to fix ecp login and tmg http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/39f93f01-ab78-41b7-9ef3-dcae8d727c97/ set-Owavirtualdirectory -identity "cas\owa (Default Web Site)" -WindowsAuthentication $True -Basicauthentication $false -Formsauthentication $false iisreset /noforce Add-PSSnapin *exchange* Set-EcpVirtualDirectory -Identity "cas\ecp (Default Web Site)" -WindowsAuthentication $true -FormsAuthentication $false iisreset /noforce