EHLO; MAIL FROM: Aaron; RCPT TO: You; SUBJECT: Enjoy!
28 Mar
As an IT admin it will happen to all of us at some point; there will be that problem that seems like you are 10 minutes away from fixing that quickly turns into 10 hours and then 2, 3, even 5+ days. Before you know it, you have spent a week with nearly zero sleep and a lot of caffeine and then you finally realize that you are not any further along than when you started. I spent the last week banging my head up against a wall trying to get a clients new Windows Server 2008 and Exchange 2007 SP1 environment up and running, only to find out that Microsoft has a crippling bug in Windows Server 2008 that won’t allow Outlook Anywhere (a.k.a. RPC over HTTP) to run in its default configuration.
The most unfortunate part about this is that Microsoft is still yet to release any information publicly about this problem, which is really sad because they generally do such a great job of at least posting limitations of their products on many of their wonderful blogs. I had to search the Internet and eventually found articles that led me in the right direction but I was never able to find a blog/article that outlined the exact steps that I used to fix/diagnose Outlook Anywhere which is why I really felt the need to write this post.
The basis of the problem is that Windows Server 2008 (like Windows Vista) gives precedence to IPv6 over IPv4 and this is especially a problem if you have your mailbox and CAS on the same server (the normal default configuration). Let me start from the beginning though in describing how the bug can be replicated, diagnosed, and then fixed.
Replication:
Normally, if you wanted to start using Outlook Anywhere on an Exchange 2007/Windows 2008 Server, the first command you would enter into a command prompt would be:
ServerManagerCmd -i RPC-over-HTTP-proxy
After this you would wait a few minutes while the server installs the RPC over HTTP proxy into IIS 7. I generally restart the server at this point even though you don’t have to.
The most important part of this next step is to be patient (specifically, about 15 minutes). Now you need to actually enable Outlook Anywhere using either the Exchange Management Console or the Exchange Management Shell. I prefer the shell and it is easier to show on the blog so this is approximately what the command should look like:
[PS] C:\>Enable-OutlookAnywhere -Server host.domain.tld -DefaultAuthenticationMethod:Basic -SSLOffloading:$false
Now you have to wait about 15 minutes for the server to register an Event ID 3006 in the Application log:
Log Name: Application
Source: MSExchange RPC Over HTTP Autoconfig
Date: 3/25/2008 1:26:55 AM
Event ID: 3006
Task Category: General
Level: Information
Keywords: Classic
User: N/A
Computer: host.domain.tld
Description:
The Outlook Anywhere feature has been enabled. The ValidPorts registry setting has been modified to reflect this change.
New value: HOST:6001-6002; HOST:6004;host.domain.tld:6001-6002; host.domain.tld:6004
Now set up an Outlook 2007 client and connect it to the mailbox using the correct settings for Outlook Anywhere access (Autodiscover should take care of this for you if you have it set up properly). Then at this point everything should be working, right? WRONG! Don’t make the same mistake I did and keep trying to fix something that just can’t be fixed (unless you work and Microsoft and if you do please contact me via the contact page so we can work out a hotfix together). You can now go to your Outlook icon in the system tray and ctrl+click on it to bring up the “Connection Status” window. In it you will notice that things aren’t connecting exactly as they should (YMMV from the picture below since I took this after-the-fact just trying to reproduce what you may see):

Diagnosis:
This is the part that drove me crazy and I honestly couldn’t have diagnosed it on my own if it weren’t for some pointers on the Internet which I want to cite here and here. I’d suggest you read those two links for starters since they are where I learned about the problem from, but to be honest, the reason why it took me so long to find these posts was because I was beyond baffled and was originally looking down the completely wrong paths for a solution. I could go on and on explaining all of the things that I thought were leading to the problem, but it would be a waste of time since the bug is so obvious now.
The problem we are experiencing here is that the RPC over HTTP proxy isn’t able to communicate over port 6004 with the localhost because there is a bug that is causing the Windows Server 2008 to not listen for connections on port 6004 via IPv6. This can be confirmed by pulling up a command prompt and typing:
netstat -a -n
The netstat command will return a bunch of source/destination IP addresses and ports, but what is really important to us is the ports relevant to the RPC over HTTP proxy which will be these parts of the output as seen below:
TCP 0.0.0.0:6001 0.0.0.0:0 LISTENING
TCP 0.0.0.0:6002 0.0.0.0:0 LISTENING
TCP 0.0.0.0:6004 0.0.0.0:0 LISTENING
TCP [::]:6001 [::]:0 LISTENING
TCP [::]:6002 [::]:0 LISTENING
As we can see, the server is for some reason not listening on port 6004 via the IPv6 loopback. This tells a couple of things, but most importantly, someone at Microsoft really screwed up by letting this one out the door without fixing it (especially since it was known about in the RC stage). This also tells us that we can fix this problem by disabling IPv6 entirely.
You can confirm that the server isn’t listening on port 6004 by telnet’ing to localhost 6004 via (FYI, the telnet client/server are not default features in Windows 2008):
telnet localhost 6004
Fix:
IPv6 is disabled the same way in Windows Server 2008 as it is in Windows Vista, but just for good measure, I recommend that you also uncheck IPv6 TCP/IP on your NIC through the “Manage Network Connections” control panel. But to truly disable IPv6 you need to open regedit and navigate to:
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
Then you will need to add a 32-bit D-WORD with the name DisabledComponents and give it a value of 0xff. This will disable IPv6 on all interfaces and all tunneling interfaces but unfortunately it still doesn’t disable the loopback interface. In order to disable the loopback interface you will need to comment out the following line in your hosts file under %SYSTEMROOT%\System32\drivers\etc\:
::1 localhost
…by changing it to:
# ::1 localhost
…and while you’re at it you may as well add a couple more lines to directly map your HOSTNAME and FQDN to your IPv4 address of the Exchange server. In the end your hosts file should look something like this:
10.0.0.10 host.domain.tld
10.0.0.10 HOST
127.0.0.1 localhost
# ::1 localhost
I would now recommend rebooting your server so that the registry changes take effect. Once your server has rebooted you should now be able to run ipconfig without seeing all of the extra IPv6 tunneling interfaces; the only thing that should be visible is the IPv4 network interface. You should also now be able to successfully issue a:
telnet localhost 6004
The final and most important confirmation that this all worked will be to log on to a client workstation again and open up the connection status in Outlook 2007 to make sure that both the Directory and Mail are connected via RPC over HTTPS.
Side Notes:
I have been unsuccessful at setting up NTLM passthrough authentication in Outlook Anywhere on Windows Server 2008. For some reason NTLM continually causes Test-OutlookWebServices to fail the RPC test, but when I Set-OutlookAnywhere to -DefaultAuthentication:Basic I don’t have any problems other than that users complain about having to enter their password every time Outlook opens. If anyone has any advice on this topic, please comment.
Now get off the caffeine and get some sleep.
102 Responses for "Outlook Anywhere Bug with Windows Server 2008"
Excellent post, thank you for sharing. I used the following command to install RPC over HTTP for Outlook Anywhere (running Exchange 2007 SP1 on Windows Server 2008):
ServerManagerCmd -i RPC-over-HTTP-proxy
But it created the /Rpc app in the Default Web Site. Is there a way to change this to another website? I have looked around and I must be missing something obvious.
The reason I want to move the /Rpc folder is that I have 2 websites on my exchange server: 1 for internal use with an internal self-signed cert and 1 for external use with a public digital cert (mail.example.com).
Any help would be greatly appreciated.
Thanks,
-Mike
Sorry Mike, I don’t have any experience using the RPC virtual directory within another IIS 7 site.
My suggestion to you would be to clean up some of the legacy way of setting things up and combine everything to be the same for internal and external. Even if your domain is for example mikesdomain.local on the inside, you could still set up the IIS default website and all of your exchange users to always use mikesdomain.com (which could theoretically be your external domain).
The proper way to enable Outlook Anywhere is to use just a single fully qualified internet hostname for both the internal and external; it should only be the autodiscover virtual directories that vary in their configuration. Then just make sure that you have a split-horizon DNS set up so that your external FQDN resolves correctly on the inside and outside.
As a semi-related side note, I would then recommend just interfacing your internal desktops with the Exchange server by allowing them to directly speak to the mailbox server in RPC; e.g. completely bypass RPC over HTTP (Outlook Anywhere).
I know that isn’t a direct solution to what you are asking, but it is really the proper way that this should be done.
Thank you for reading my blog. I’m glad to hear you found it helpful.
Microsoft KB Article 949469 (4/1/2008): NSPI connections from Microsoft Outlook to a Windows Server 2008-based domain controller may fail with an error code: “MAPI_E_LOGON_FAILED”
Danny, could you possibly contribute a little more information as to how you found the link to KB 949469? I definitely find KB 949469 interesting, but it seems to be an unrelated way of fixing the problem I’m describing. I’ll make sure to check this out on my clients Windows 2008 servers, but I’m wondering if you were implying that this can also fix the IPv6 bug?
Side Note: I want to add an interesting article on TechNet that is unrelated to my blog post, but it describes an interesting behavior with Autodiscover and NTLM not working correctly with Outlook if the OutlookProvider cmdlet doesn’t have a value of:
Set-Outlook Provider EXPR -Server:$nullHi,
Sorry about the poor information I supplied – anyway, I got exactly the same problem as you. I can’t use NTLM authentication on Vista (RTM – no IPv6) with Outlook 2007 SP1 / Windows Server 2008 (RTM) with Exchange 2007 SP1 (one box setup, including ADS)-(NO IPv6, FQDN added in Hostfile etc. etc.).
After I tried the KB949469 – my clients are able to connect, but are getting a prompt for password every few minutes?!?!
I got another Win2k8 / Exchange 2007 SP1 (without ADS) running with no issues at all, but this is one is also running with Basic Authentication. (The outlook anywhere experience is very good compared to Win2k3)
Tomorrow I contact MS for a solution.
Regards,
Danny Glaesner, Denmark
Danny, have you tried using the Test-OutlookWebServices cmdlet on your 1st box you mentioned? I’d be curious what the output is of that cmdlet.
Your second configuration sounds like the only scenario that I have been able to make work thus far.
Please do report back though if you find a way to get NTLM working.
Hi Aaron!
You’re a lifesaver – you describe my exact feeling “This is the part that drove me crazy and I honestly couldn’t have diagnosed it on my own if it weren’t for some pointers on the Internet” – in my case you were my pointer to solve this (since implementing Exchange 2007 SP1 on Windows 2008 server a month ago) and I cannot thank you enough. Now our production environment is up and running without any problems.
Once again thank you very much!
Best regards
Anders
Hi Aaron
You freaking saved my day (or days) – this was exactly the same problem i had, and it was fixed by following your description. Thanks a lot.
Best Regards,
Simon
Looks like i was a little bit too fast in celebrating success. After it has been running for an hour or so, it is still able to access the Directory service and all users can connect.
My problem now is, that if i set up Outlook Anywhere manually, type in my mailbox server (DOM10SRV01) and username, setup https://externaldomain and msstd:exterrnaldomain as well as selecting basic authentication, it is unable to resolve my mailboxserver to “DOM10SRV01.DOM10.local” after prompting me for username and password – this actually worked right after rebooting the server and having followed your guide, but somehow stopped working after some time. Which basically means im unable to set up new profiles in Outlook for new mailboxusers wanting to use Outlook Anywhere – huge problem.
Any ideas on what this issue could be caused by?
Simon:
If it can’t find your mailbox server then make sure that your DNS is working properly before going any further. Check the forward and reverse DNS. Also, make sure that you are entering your username when it requests it as DOM10\simon (or whatever your username is; it could also be entered as simon@DOM10.local) and then enter in the password.
Do you correctly have your split horizon DNS configured so that your external domain resolves correctly internally and externally? I’d bet that this is where your problem lies.
OH MY GOD! TTHHAANNKK YYOOUU AARON!!!!! I’ve been beating my head against the damn wall over this for WEEEEEKS!!!! It’s almost made me CRY. Thank you!!! I FINALLY have a 100% functional implemenation of Exchange 20007 SP1 on Windows Server 2008 with ISA 2006 and Outlook Anywhere.
The only thing I still can’t seem to make work is NTLM for Outlook Anywhere (not on the domain, vpn, etc), but you know what- screw it- they users can authenticate as far as I’m concerned right now.
Seriously- Thank you
-Tom Hundley
One thing you might want to look at for getting NTLM to work is the following:
1. In Exchange Management Console, go to Server Configuration > Client Access, double-click the server name, go to Outlook Anywhere (last tab), switch from Basic to NTLM.
2. (I’m not sure if you _need_ this step – Exchange might do this automatically… try step 1 above and see if it works): in IIS, expand your server, go to Sites > Default Web Site > RPC, then in the “Features” page double-click Authentication, right-click Windows Authentication and choose Enable.
With this, I was able to use NTLM. One thing to remember… when you are testing, make sure you CLOSE the ‘Mail’ applet in Control Panel – it seems that it doesn’t refresh its credentials properly and you might think that it’s not working when it actually is.
Thanks Aaron. I’ve spent several hours on this too. When i figured out that the problem was that Outlook was unable to contact a domain controller, i was able to find your post. You saved me several days of additional troubleshooting.
I’ve found that adding the names to the hosts file is enough – no need to disable IPv6. I don’t think running Exchange 2007 with IPv6 disabled is a supported configuration – setup complains if you have it disabled.
[...] das Problem gefunden. Eine detaillierte Problembeschreibung habe ich spter auch mal gefunden: Outlook Anywhere Bug with Windows Server 2008 at Aaron Marks IT Consulting Das Problem ist folgendes: Adress List lookups funktionieren nicht, und das Autodiscovery Setup [...]
Lukas, thank you for the additional information. I tried just adding the names to the host file like you stated, but that wasn’t enough for me. I’m fairly certain that at a minimum you would have to comment out the IPv6 localhost reference in the host file. I do partly agree with you though that the registry entry to fully disable IPv6 may be overkill, but in response to your claim about IPv6-less being an unsupported Exchange 2007 SP1 configuration… look at Windows Server 2003 running Exchange 2007 SP1… it doesn’t require IPv6. If setup is complaining on Windows Server 2008 about no IPv6 then it is probably just doing so because it doesn’t have the ability to check and make sure that you disabled every last aspect of it (having just parts of it disabled could cause bigger problems which is why I disabled it in the registry as well as the host file).
Jason, I’m fairly certain that there is something else you must have done to get your NTLM working with Outlook Anywhere if that is what you are stating since myself and many others have already tried what you stated and it didn’t work. I’m fairly hopeful though about trying some of the newly released KB articles on this issue. Unfortunately I just haven’t had the time to get around to this yet.
Thank you both!
[...] Anywhere / Outlook Autodiscovery on Windows 2008 still has some problems. Read this most excellent post that has all the [...]
I was going crazy about this problem for three days before I have found your site. THANKS!
BTW, in my configuration I use NTLM authentication without any problems. I have published Exchange 2007 behind ISA 2006 with recommended settings and it works.
Wow, thanks a million!! I spent a good 10 hours thinking I’ve either done something wrong or just that since 2008 was so new I was leaving something out. Your solution worked perfectly, except I had to reboot to get it to work. Thanks!!!!!!!
DOH! I thought we had this fixed (and we did) but all of a sudden the problem is back. The current profiles work fine, but any attempts to set up a new Outlook Anywhere profile fails with Outlook 2007; I can successfully set one up with Outlook 2003 though.
The weirdest part of all is that we have one workstation (running Windows Fundamentals for Legacy PCs) that is able to set up new profiles with Outlook 2007.
Any updates? We have IPv6 enabled (otherwise hub transport fails) but commented out the IPv6 localhost in the hosts file and have the appropriate IPv4 entries in the host file as well. I know this was working fine as of 4/21/08 because I rebuilt my Vista machine that day and was able to set up a profile just fine. Something has gone wrong since then.
I’m almost suspecting one of the recent Microsoft updates might have done something odd?
I am also stuck in the same boat, and adding those host file entry’s have solved the core problem. My other problem that I share with everyone else is to get NTLM to work with it. I find that if i reset iis, ntlm over outlook anywhere will work for around 5 minutes, then all of the outlooks will get user/pass pop-ups, and no account will authenticate again. but if i reset iis again, it will work for a few more minutes… talk about annoying.
if anyone finds the solution for this please let me know!!
Many thanks Aaron for the help!
Ok, This post has helped a lot. I still have a ways to go though. I can connect as long as I do an intial auth on the LAN and then switch them to Outlook anywhere. I am getting All of the connections in status established via https, so it is working. I get an immediate kick back on auth when trying to auth a new account on outlook anywhere only though (almost like it is never making it there) If this is something you have seen or something you might lend a suggestion to it would be greatly appreciated. This is the last step that I have to get working before we can fully cut over to exchange. We have many remote users, so getting them to auth on the domain even 1 time is not going to be possible.
Aaron. Thank you so much for this post. Disabling IPv6 on my Lan card network connection and changing the HOSTS file were sufficient for me.
With regard to NTLM, I have NTLM working fine. My “recipe” (I am not sure which of these things is essential) is:
[...] working for Outlook 2007 with IPv6 enabled (More information can be found from the following URLs: http://blog.aaronmarks.com/?p=65 and http://www.buit.org/2008/01/04/outlook-anywhere-is-broken-on-ipv6-in-windows-server-2008). [...]
[...] Verwendest du Server 2008? Outlook Anywhere Bug with Windows Server 2008 at Aaron Marks IT Consulting [...]
Thanks Aaron,
I was also banging my head against this problem (and opened a case with Microsoft to no avail) when I ran across your post. Fully disabling IPV6 was the solution. A couple of caveats… first, even with IPV6 enabled, you can still telnet to localhost on port 6004 (at least you could on my server). Simply disabling the protocol using the checkbox (as you pointed out) is not enough. You can tell if you have disabled IPV6 sufficiently by pinging localhost. If you get a normal IP response (i.e. 127.0.0.1), then you have disabled IPV6. If you get ::1 as the response, you have to perform the registry change and reboot the server.
Anyhow, thanks again. RPC over HTTPS now works like a charm.
Richard Ozer
Office Information Systems
I think I just solved this same problem. I tracked down the neverending password prompt to IIS’ authentication method for the Rpc folder, but when I would go into IIS and enable NTLM on the Rpc folder, within minutes it would switch back to disabled, and Outlook over HTTP would continually prompt for password but never authenticating. I went to the Exchange Command Shell and typed:
Set-OutlookAnywhere -Identity ‘\Rpc (Default Web Site)’ -IISAuthenticationMethods Ntlm -ClientAuthenticationMethod Ntlm
and it seems to be sticking so far.
TIM
Thank you some much for this post. It has saved me from jumping off a bridge. I have managed to get everything working by following your solution. Outlook Anywhere will now function without continuous password prompts and you are able to create new connections to a mailbox remotely. The only issue i have is that everytime you open outlook you get a prompt for a user name and password. Once you successfully authenticate, it works fine. I’m using NTLM and have tried Tim’s suggestion to no avail, anymore suggestions would be greatly appreciated.
Thanks again.
Looks like the post stripped out some text, it was supposed to be “[servername]\rpc (default web site)”. However I got the infamous password prompt again so I enabled both Basic and NTLM in IIS, which seems to have fixed it, so I would suggest updating my previous command to:
Set-OutlookAnywhere -Identity ‘[servername]\Rpc (Default Web Site)’ -IISAuthenticationMethods Ntlm,basic -ClientAuthenticationMethod Ntlm
TIM
I’ve had same trouble with NTLM authentication for RPC over HTTP. Basic authentication was working right, but I couldn’t get NTLM authentication work.
One Microsoft guy… hi Jõao
… helped me with the following:
I had to add this missing registry key to one of the Domain Controllers of our Exchange domain. After, rebooting the DC, NTLM started to work correctly.
HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\NTDS\Parameters
NSPI interface protocol sequences REG_MULTI_SZ ncacn_http:6004
Hope this helps someone.
So to follow up from earlier post. We are stable with the exception of the offline address book. (getting lost of sync errors) We are using NTLM and it is working. I hve to be missing something on the OAB. In client getting the 0x8004010F errors. I see this listed on many posts.
Hello folks!
I’ve tried the fixes thats been presented here for NTLM authentication but nothing been working for me. Im still getting prompted for credentials every 10-15sec on my Outlook client. Anyone happen to have an idea to whats wrong? (Everything worked OK on Windows 2003) Thanks
After moving to Windows Server 2008, I too experienced the “endless password prompts” issue when using Outlook Anywhere (RPC/HTTP).
We had been using NTLM with RCP/HTTP on Windows Server 2003 without any issues.
After examening the IIS logs, I noticed both /RPC and /OAB requests were failing (401 errors).
After lots of fiddling I got RPC/HTTP working with NTLM.
I still have the /OAB virtual directory authentication failure.
I can view /OAB//oab.xml after restarting IIS7 or making certain changes in IIS7.
However, after a few minutes (probably due to some Exchange service re-applying settings), it no longer accepts any credentials (including domain admin) and fails with a 401 error.
NTFS security on the /OAB//oab.xml seems correct.
Since we still have a Public Folder database (which we need for our Outlook 2003 users), I’ve decided to remove web distribution of the offline address book for now and use Public Folders exclusively.
This is working fine (for both Outlook 2003 and 2007), but I still wonder what the issue with /OAB is.
I wonder if this is an issue with my specific installation or whether this is a more general issue.
I’ve even reinstalled Exchange 2007 CAS role and IIS7 … to no avail.
Any feedback on the /OAB authentication problem would be greatly appreciated.
More information regarding the Outlook Anywhere issue on Windows Server 2008 has been posted on the MS Exchange Team blog:
http://msexchangeteam.com/comments/449053.aspx
(scroll down to “DSProxy and IPv6″)
Thank you! Great post and just what we needed. There aren’t *that* many 2007 implementations on Server 2008, so these site are godsend when I come across them.
I’ll spare all the details, as the other post here do plenty of justice for thanking your fix.
On another note, a previous post mentioned that you can still telnet to 6004 localhost with IPv6 enabled and they are correct. Gosh, 2007 on 2008 made 2003 look RPC HTTPS look like cake.
Aaron! I could kiss you. At last, this is working just like on a 2003 machine. Why, oh why, does Micros~1 require IPv6 at install time, when it breaks a crucial function? I spent the better part of two days looking for an answer to this…
At last, running Outlook Anywhere with NTLM on one single self-signed certificate.
Now I’m gonna get legendary drunk.
Thanks for the info on this site. It’s been very helpful. I do want to post something that has worked for me regarding Outlook Anywhere/NTLM. My setup is Exchange 2007 SP1 with update rollup 2 all on a single server acting as a DC as well. My outlook clients are both Outlook 2003 and Outlook 2007. Like Landon, Outlook Anywhere/NTLM would work right after I reset IIS for a bit then all of a sudden stop working. Looking at the RPC virtual directory in IIS Manager, I saw it was linked to the DefaultAppPool and recycling the DefaultAppPool would enable Outlook Anywhere/NTLM to work for a while too. I figured it was something in the DefaultAppPool that was broken so I went into advanced settings and bumped the “Maximum Worker Processes” to 2 giving me another w3wp.exe process to work with. So far, 20 hours later, Outlook Anywhere/NTLM is still working without having to reset anything. I don’t know why this seems to have fixed it but it’s working so far and maybe it will help someone else.
Aaron and other posters here. Thank you very much.
I just setup Exch2007 on Windows 2008 and got the same problems.
I found this post at the end of the day and I’m glad I did not spend more time
getting lost in Microsoft crap, I will try your suggestions tommorow.
Since I’m sure this will happen to everyone using the same settings (ex07 on W08)
it raise a question regarding MS commitment to releasing “good” software.
Exchange 2007 with SP1 is required in order to install on Windows 2008
since than rollup 2 was released… same crap.
If those issues were not soved by rollup 2, what the hell is Micosoft spending it time on.
BTW, I have the same OAB download from Outlook 2007 issue on this server.
I had similar problems with OAB on Win2003 but this seem strange…
Thanks again.
From now on I will tell my customers not to go with Win08 for Exc07
[...] Wenn du das Zertifikatsproblem nach den Anweisungen von gysinma gelst hast, wirst du auch noch dieses Problem haben: Outlook Anywhere Bug with Windows Server 2008 at Aaron Marks IT Consulting [...]
hello guys,
i really have this problem with outlook anywhere on win2008 and exchange 2007sp1 rollup 3.
i cant us NTML or Basic Auth on Vista SP1 with Outlook 2007 SP1 / Windows Server 2008 (RTM) with Exchange 2007 SP1 one exchange server with all roles, and another dc. i made the following described in this article
NO IPv6, FQDN added in Hostfile, reboot the server.
what i have disabled is outlook anywhere under EMC. i hope i am right. this setting will only force the settings to the users.or will outlook anywhere not work when this settings ( external owa hostname, standard auth) are not configured?
when i now manually configure a outlook client with basic auth i get the password prompt, than it says that the certificate does not match => name, i habe a san certificate but at the moment only for owa.domain.com, not for autodiscovery.domain.com
and after i entered my password. it says disconnected.
no log in the eventviewer. anybody help? i only want to get outlook anywhere working. i can live with the password prompt once at the moment..
please help..
with kind regards,
sebastian
so i just enabled outlook anyhwere over shell. but no i have the problem that all normal users are getting the popup to enter the password. ok if they enter the password outlook connects with no error. but i dont want to use outlook anywhere inside my company. how can i activate oulook anywhere only for specific users. or how can i add both basic and ntlm to get the internal clients workin without entering password.
sebastian
[...] outlook anywhere issues with 2k8 Outlook Anywhere Bug with Windows Server 2008 at Aaron Marks IT Consulting [...]
Update from Microsoft’s blog:
http://msexchangeteam.com/archive/2008/06/20/449053.aspx#comments
Hey Folks,
As promised, here’s an update on the reprompting issue that many of you have encountered.
The gist of the issue is that IIS7 uses kernel mode windows authentication by default. Turning this off will fix reprompting. I will post a detailed update once I dig through some more and talk to the IIS PD, but for now I wanted to provide this update so you can give it a shot and let me know if (no, “that”) it works for you
Here’s the command that needs to be run on the CAS boxes ->
%Windows%\inetsrv\appcmd.exe set config /section:system.webServ
er/security/authentication/windowsAuthentication /useKernelMode:false
Simply, thank you very much Aaron!!
Pull hair! Kick server! Scream at server.. then… I find this page and all is well.
On a serious note: thank you SO much! 90% of what you stated worked. The only thing I had to do was, on my AD (and GC) I had to tweak the registry to listening on port 6004.
All seems to be working as advertised so far. I did try the NTLM settings but the password prompt issue reared its ugly head again so I set it back to basic auth, rebooted the server and it seems to be working.
Thank you again!
Im running a Windows 2008 Server as both an Active Directory Domain Server and a DNS Server and Im testing on a client laptop machine running on Windows Vista Business sp1. Im in an active directory domain in which both computers and a couple more servers are members.
The problem is that the client cannot resolve domain names using ping fqdn and nslookup. It can however ping other computers using ip addresses but cannot ping itself using its own ip address.
The other two servers can successfully ping using fqdns and ip addresses but cannot nslookup ip addresses. Pinging the client (laptop) however is unsuccessful for both ip and fqdn.
I can see all computers on ‘network and sharing center’ from all computers and thus I do not understand why this problem occurs.
If anyone is willing to point me to the right direction i would be very grateful.
[...] Anywhere / Outlook Autodiscovery on Windows 2008 still has some problems. Read this most excellent post that has all the [...]
Hi Mate,
Info is great though I am pulling my hair out on a little bit before this. My New E2k7 W2k8 box is not listening on any of the RPC ports when I do a netstat. Checked the Services they seem to be all good. have uninstalled and re-installed RPC over HTTP and still no joy.
Cheers,
Darren
SYDNEY AU
Ignore that post I was being a User. Realised the Client access server was make an RPC proxy connection to the Mailstore server, I had the Outlook client configured to connect to the CAS and not the Mailstore server as soon as I corrected that and the IPV6 option above we were all good.
Cheers Again,
Darren
SYDNEY AU
Hello,
I ran the below command, rebooted the server and some users are still getting the inseccant password prompt. Is there anything I should look at? I am runnig Exchange 2007 on Server 08, all Exchange roles on a single box.
Here’s the command that needs to be run on the CAS boxes ->
%Windows%\inetsrv\appcmd.exe set config /section:system.webServ
er/security/authentication/windowsAuthentication /useKernelMode:false
Well the command did seem to do the trick Thanks! You are a life saver.
I need some clarification on the fix for the HOSTS file:
Is the FQDN to be placed in the HOSTS file the internal or external domain (internal.domain.com or external.domain.com)?
BTW, I applied RU4 for Exchange 2007 SP1 and still have not gotten RPCoHTTPS to work. So I want to try this posts fix next? Please advise ASAP. Thanks!
I just want to say Thank You! I was on the verge of going delirious when I realized that this fixed the problem. What a pain in the ASS!!!
@Jacob, the FQDN that is placed in the HOSTS file should be the internal domain.
Hello there, is this still a current problem with Windows Server 2008 or is it fixed? I have problems with Outlook Anywhere but netstat shows 6004 Port for IPv6.
Thanks a lot, Jörg
@Jörg, yes, this is still a problem with Windows Server 2008 and Exchange 2007.
Thank you, this problem had me going crazy too! You really saved my day / weekend.
Regards,
-Jan
[...] découvre grâce à http://blog.aaronmarks.com/?p=65 qu’il y a un bug lorsqu’on utilise Outlook Anywhere avec un serveur Windows 2008. Ce [...]
Thank you very much!
I have to sleep now^^
regards
Just FYI there is a Microsoft KB article for this now
http://support.microsoft.com/kb/954389/en-us
3 words: I love you.
(and how come I couldn’t find that dang MS KB article in my hours of sifting for a clue)
My skull-bashed head thanks you for the post!
Hi,
I also had a problem with NTLM authentication, so I swiched to the Basic. But configuring Basic authentication wasn’t easy to.
On RPC virtual directory I was contrained to set “SSL Settings/Client certificate” -> Ignore. The interesting thing here is if on “Default Web site/SSL Settings/Client Certificate” is set to Accept, then RPC inherits this setting.
For example, you have changed “RPC/SSL Settings/Client Certificate” to Igore, then you are trying to connect using Outlook and it goes OK. But the second time you reestablish the connection, it fails. You go to the “RPC/SSL Settings/Client Certificate” and? yes, it automatically has changed to “Accept” value.
[...] Outlook Anywhere not working I found the fix: http://blog.aaronmarks.com/?p=65 « Cannot connect to exchange via OWA | iPhone EAS question [...]
Hello,
is this error now fixed in rollup 5?
regards,
sebastian
Adjusting maxAllowedContentLength for the Rpc virtual directory in applicationHost.config is what finally resolved my issues. There’s a Microsoft KB article out there on it:
http://support.microsoft.com/kb/942074
I’m having problems with Outlook Anywhere on Windows 2008, Exchange 2007 SP1 Rollup 6.
However port 6004 already seems to be working according to netstat and telnet. Perhaps the service pack version I am running has already fixed this particluar issue. Even so I’m still having issues getting Outlook Anywhere running.
Just saying in case others are in the same boat.
Actually further to my comment above the following article from Microsoft suggests that this issue was fixed in Rollup 4.
http://technet.microsoft.com/en-us/library/cc671176.aspx
spent 1 1/2 hrs. on the phone with MS only to come back to this article i’d seen when i first started having problems. the registry key to disable IPv6 would not accept “0x…” so we had to convert it to decimal first. Exchange update rollup 7 doe NOT fix this issue. Aaron Marks, you are THE MAN!!!
Thanks again everyone… I still can’t believe that our friends over at Microsoft haven’t released a hotfix that at least makes the necessary changes for admins as a pre-req to install.
so this error is actually not fixed with roll up 7????
what will i have to do to get ntlm working??
i want that the user doesnt get this prompt when he starts outlook. i i enable outlook anywhere the prompt comes always up.
regards,
sebastian
Hello,
Does the DC/GC registry entry NSPI interface protocol sequences REG_MULTI_SZ ncacn_http:6004
also apply to 2008 DC’s ?
Thanks
Thanks so much for this article. I’m currently on Day 5 of trying to get this thing working, and I’m finally there. Thanks for saving me another 5 days.
I had the same issue on Exchange SP1 Update Rollup 7 on a 2008 Standard box and here are the steps I performed to fix it:
Run CMD Prompt as Administrator and change the directory to: C:\Windows\System32\inetserv. Execute the following command in the above directory: appcmd.exe set config “Default Web Site/” -section:windowsAuthentication -useKernelMode:False /commit:apphost .In IIS Manager, expand the Default Website and select the Autodiscover virtual directory. Select Authentication then highlight Windows Authentication and click Advanced Settings… Ensure that Kernel Mode Authentication is disabled. Repeat this for the following virtual directories: EWS, OAB, and RPC. Return to the CMD Prompt and issue the cmd: iisreset.
For NTLM, you need to enable NTLM version 2 in the registry on XP Clients if you’re using a 2008 Global Catalog and have Exchange 2007 on a 2008 box. This will remove continuous password prompts after they enter it in once. Here is the fix: Open regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa. Set LmCompatibilityLevel to 3 in the “Value Field” and you should be good to go.
This page was the breakthrough that we needed in our project. THANK YOU for posting this.
I will add that it was important for the ‘hosts’ file of the CAS to have:
x.x.x.x [Netbios name]
x.x.x.x [Internal FQDN]
in separate lines even if the IPs are the same.
Thanks again for posting this.
Thanks for the post. My problem also lied in the Kernel Mode Authentication.
For those insterested, the full TechNet article is here: http://technet.microsoft.com/en-us/library/bb123889.aspx
This article is a real life-saver… Thank you very much!
Genius!!! I was trying to troubleshoot an issue with OAB’s when connected over HTTPS and I noticed that the Directory connection was showing disconnected. I realised that was not right and that train of thought led me here.
Your instructions worked perfectly and I did not actually need to restart the server!
Thank you very much!
Wow! Aaron you are the man! I also tried for a week to get Outlook Anywhere working. It was driving me absolutly insane. I followed the registry and hosts file suggestions and it worked great! Thank you so much for posting this, it saved my a$$ big time!
Zach
Just another person wanting to say thanks for posting this. Been banging my head against this for the last couple of hours. Still can’t believe it’s not fixed in update 9!
I appreciate this post more than you know! I wasn’t able to track it down until I did a search for “Outlook Anywhere Virtual Directory”, after about a day of research and lack of success in resolving this issue.
Thank you for the information, highly valuable.
Aaron, you are the best and you are a life saver
Thank you very much about that fix. Your article keeps my hair on my head otherwise I’m still tearing my hair one by one on my head.
It works on Win2K8 SP2 and Exch2K7 SP1 Rollup 9.
Kursad Olmez
I add to every thank you in the thread. I am only a couple of days into this – with Windows 2008 SP2 and Exchange 2007 SP1 rollup 9, and ISA 2006.
I am confused by the roll of IPv6 and Exchange, as I recently attempted to install Exchange on a new server, in which I had disabled IPv6 right off – before starting the Exchange install.
The install failed, and only after much searching did I find a reference to enable IPv6. That fixed my problem – Exchange installed with no problems.
And now I find that RPC over HTTPS does not work with IPv6 enabled!
Thanks a million. I didn’t think this would work for me because telnet showed listening on 6004 for ipv6 loopback.
I edited the hosts file and it did not fix the issue.
I edited the registry and my out side box connected imediatly.
YAY! Disabling ipv6 and adding hte hosts file entries seem to have done it!
Hello Aaron,
i tried to disable the IPv6, but it has an effect to my exchange server 2007, i couldn’t connect once i disabled the ipv6 of the server
Does Exchange 2007 sp2 fix the problem?
Solution:
ALL of the above…. *lol*
Hostsettings… Authentication Settings …
THANX A LOT… and good night to everybody…
Tommy & Bernhard
Flippin’ outstanding! This fixed an issue where our users couldn’t expand distribution groups outside of the network, as well as autodiscovering Outlook profiles outside of the network. You are the man!
Thank you guys for your valuable advices, I disabled the IP6 loopback address and add the host FQDN to the hosts file, I spent one than one week trying to figure out this issue.
Wow, thanks for posting this, it works. Make sure you edit the host files with your servername / netbios name and localhost.
Thanks again.
very bad idea to disable IPv6. If exchange runs on a single server, maybe a SBS2008, you kill your functionality of the role as a dc – because after the changes are made how discribed above, the server won’t find himself!! So at reboot and logon your domain is not available anymore… you can setup your server from the beginning. Have fun…! A side-effect of disable IPv6 in the network settings: some network-services are not running anymore, as they are disabled from the system…
http://technet.microsoft.com/en-us/library/cc671176%28EXCHG.80%29.aspx
After going through the entire blog I still cannot get Outlook anywhere with NTLM to work. I have exchange 2007 sp2 on server 2008. clients w/Outlook 2007 on XPPro non-domain. when running the Exchange Remote Analyzer for RPC/HTTP I get the following error, The certificate common name domain.com, doesn’t validate against Mutual Authentication string provided msstd:mail.domain.com but the cert, a UCC has the following names domain.com, http://www.domain.com, mail.domain.com, msstd:mail.domain.com is this issue with the cert or with the server? Any ideas, Thanks
Thanks!!!!!!
Thank you for taking the time to share your experience. It mirrored ours and your fix was elegant.
I have IPV6 disabled completely and for the most part Outlook Anywhere works. We have users spread out from Puerto Rico to California. Lately they have been reporting connections issues. Their Outlook pops up a message saying “trying to connect to server”. They can’t do anything for at least a couple minutes. The problem is intermittant and was originally assumed a routing dely across many hops. So we didn’t think much about it when the California users complained because the server is in Florida. Lots of hops in between. Then we had an incident where a local computer configured to use Outlook Anywhere HTTPS only, received the same message. This computer was on the same subnet as the Exchange Server itself but not part of the domain. Any idea where I should look?
[...] http://blog.aaronmarks.com/?p=65 [...]
Thanks for posting this, I was just about ready to give up. My problem also lied in the Kernel Mode Authentication. These problems can be so frustrating sometimes!
In response to Mike Hanley’s question and for future ref, in SBS 2008 I needed to reinstall the rpc over http component, but the rpc dir needs to be under the “SBS Web Applications” website. It took me a long time to find this little known trick! I hope it prevents someone loosing as much sleep as I did…
1. if installed, use the powershell to remove the rpc over http component:
ServerManagerCmd -r RPC-over-HTTP-proxy
(nb. it is important to bo this before step 2 as this process also removes the rpcproxy key)
2. create the following registry key, in this example for the SBS 2008 “SBS Web Applications” website
HKLM\Software\Microsoft\Rpc\RpcProxy\Website
as a String, with value “SBS Web Applications”
3. reinstall the rpc proxy component:
ServerManagerCmd -r RPC-over-HTTP-proxy
Sorry, wrong switch n last line, should be:
ServerManagerCmd -i RPC-over-HTTP-proxy
Thank you so much, you are truly a God Send. This has been a nightmare.
Thank you
Great article and certainly saved me pulling my hair. Keep up the good work!
is it applicable for exchange 2010 with windows server 2008…
Leave a reply