Error when attempting to set internalURLs in Exchange 2010
I am attempting to set the internal URL on the exchange server to match the new external URL that is mentioned on our certificate.
---
[PS] C:\Windows\System32>Set-ClientAccessServer -Identity **** -AutodiscoverSe
rviceInternalUri https://***/autodiscover/autodiscover.xml
Running this command works perfectly fine.
----
However, when I run the other two I need:
C:\Windows\System32>Set-WebServicesVirtualDirectory -Identity "***\EWS (
Default Web Site)" -InternalUrl https://***/ews/exchange.asmx
and
[PS] C:\Windows\System32>Set-OABVirtualDirectory -Identity "***\oab (Default
Web Site)" -InternalUrl https://***/oab
----
They give the following errors respectively:
Set-WebServicesVirtualDirectory : The operation could not be performed because
object '****\EWS (Default Web Site)' could not be found on domain controller
'***.local'. *(***.local refers to a second server, not running exchange on the local domain, this server is located in a different location, but connected with an active VPN tunnel to the main site)*
At line:1 char:32
+ Set-WebServicesVirtualDirectory <<<< -Identity "***\EWS (Default Web Site
)" -InternalUrl https://***/ews/exchange.asmx
----
Set-OabVirtualDirectory : The operation could not be performed because object '
***\oab (Default Web Site)' could not be found on domain controller '***.local'.
(Refers to the same server as above)
At line:1 char:24
+ Set-OABVirtualDirectory <<<< -Identity "***\oab (Default Web Site)" -Inte
rnalUrl https://***/oab
-----
Note, I am following the Microsoft KB article:
http://support.microsoft.com/kb/940726 to fix an issue with a certificate warning.
I am using the internal Certificate server installed with Windows 2008, and requested a new Exchange certificate for the appropriate external URL so that users could access the internal Exchange server outside of the network. This internal server does
not send or recieve email outside of the local network. It is simply for Calendar and data storage on the network.
I would welcome any ideas on why I am getting these errors as I am having trouble finding any information on them.
February 8th, 2011 6:13pm
Can you verify that you didn't rename the default ews and oab website?
get-WebServicesVirtualDirectory |fl name
Name : EWS (Default Web Site)
James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2011 11:10am
That command results in the following error
I get teh same error even when I don't pipe the output of Get-WebServicesVirtualDirectory
[PS] C:\Windows\System32>Get-WebServicesVirtualDirectory |fl name
Get-WebServicesVirtualDirectory : Unable to create Internet Information Service
s (IIS) directory entry. Error message is: Access is denied.
. HResult = -2147024891.
At line:1 char:32
+ Get-WebServicesVirtualDirectory <<<< |fl name
[PS] C:\Windows\System32>
February 10th, 2011 4:50pm
make sure you are running the EMS as an administratorChris Morgan
Blog
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2011 5:13pm
Are you running PS as admin? Launch using run-as. Also try from another cas server.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
February 10th, 2011 5:17pm
Thanks, It was a different name.
Free Windows Admin Tool Kit Click here and download it now
February 11th, 2011 7:16pm