AADSYNC e proxy issue

Are you going to install AADSYNC behind a proxy?

Well, you need to do two things:

  1. Configure your proxy server to get some office 365 URLs in anonymous (no authentication)
  2. Configure AADSYNC to use proxy server

Configure your proxy server

Configure proxy server as indicate in this URL Office 365 URLs and IP address ranges:


Configure AADSYNC

You have to configure proxy settings on internet explorer for service user, you can do that in this way:
runas /user:domain\serviceuser "control.exe inetcpl.cpl"

If you continue to have problem after configure Internet Explorer then you must configure machine.config in .NET45 Framework
Add this section to bottom of file, be aware it's case sensitive:



<proxy usesystemdefault="true" proxyaddress="http://proxy-ip:80" bypassonlocal="true" />



Comments (4)
  1. Ripom says:

    Hi Victor,

    sorry to reply right now.
    I suppose there is some error in machine.config, did u copy and paste code i wrote?
    Let me know I’ll try to help u.

  2. Victor says:


    I had configure the machine.config file with your section code.
    But now, i have a new problem in AADSYNC services tool:

    the extension could not be instantiated..

    Do you know why and how can i fix it?

    Thank you,

  3. Victor says:

    It’s okay!
    It was a error in the code 🙂

    Thank you for this article.

  4. Onno says:


    In case you don’t know the credentials of the service user, like when it’s the auto created user, you can’t set the proxy by running: runas /user:domainserviceuser "control.exe inetcpl.cpl"
    However, you can edit the registry and manually set the "ProxyServer" entry under: HKEY_USERS\SoftwareMicrosoftWindowsCurrentVersionInternet Settings" and make sure the "ProxyEnable" DWORD is set to 1.

    At least in our case this worked.

    – Onno

Comments are closed.

Skip to main content