1. Remove OWA (Exchange Back End).
Remove-OwaVirtualDirectory -Identity "ex1\owa (Exchange Back End)"
[PS] C:\Windows\system32>Remove-OwaVirtualDirectory -Identity "ex1\owa (Exchange Back End)"
Confirm
Are you sure you want to perform this action?
Outlook Web App virtual directory "ex1\owa (Exchange Back End)" is being removed.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y
[PS] C:\Windows\system32>
2. Create OWA (Exchange Back End).
New-OwaVirtualDirectory -WebSiteName "Exchange Back End" -Server ex1
[PS] C:\Windows\system32>New-OwaVirtualDirectory -WebSiteName "Exchange Back End" -Server ex1
Name Server OwaVersion
---- ------ ----------
owa (Exchange Back End) EX1 Exchange2013
[PS] C:\Windows\system32>
Remove-OwaVirtualDirectory -Identity "ex1\owa (Exchange Back End)"
[PS] C:\Windows\system32>Remove-OwaVirtualDirectory -Identity "ex1\owa (Exchange Back End)"
Confirm
Are you sure you want to perform this action?
Outlook Web App virtual directory "ex1\owa (Exchange Back End)" is being removed.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y
[PS] C:\Windows\system32>
2. Create OWA (Exchange Back End).
New-OwaVirtualDirectory -WebSiteName "Exchange Back End" -Server ex1
[PS] C:\Windows\system32>New-OwaVirtualDirectory -WebSiteName "Exchange Back End" -Server ex1
Name Server OwaVersion
---- ------ ----------
owa (Exchange Back End) EX1 Exchange2013
[PS] C:\Windows\system32>