How to configure the Exchange Online, AzureAD, SharePoint Online solutions to use proxy server settings?

Azure AD and Office 365
9.0-9.7
9.8
https://kb.netwrix.com/713
Copy Article URL Copied

How to configure Exchange Online, AzureAD and SharePoint Online to use proxy server settings?


Exchange Online

Exchange Online relies on PowerShell which in turn uses the proxy settings from the network adapter.  Unfortunately, the browser proxy settings in Windows are not propagated to the network adapter by default.

Here’s a solution to the issue:
1. Check the network adapter settings:
netsh winhttp show proxy:
User-added image

2. If the system shows “Direct settings”, configure the network adapter to use the correct proxy settings: netsh winhttp set proxy proxy-server=”http=172.28.13.79:8080;https=172.28.13.79:8443″:
User-added image

Note: replace proxy server settings above with your actual settings.
Once you accomplish these steps, Netwrix Auditor for Office 365 should start working.

For AzureAD and SharePoint Online, the proxy settings need to be added to the configuration files.

Azure AD

For AzureAD (C:\Program Files (x86)\Netwrix Auditor\Azure AD Auditing) please edit the following files:

Netwrix.Common.AzureAdHelper.exe.config
Netwrix.O365.AzureAdCollector.exe.config
Netwrix.O365.AzureAdDiffQueryCollector.exe.config
Netwrix.O365.AzureADDumper.exe.config
Netwrix.O365.AzureAdManagementApiCollector.exe.config
Netwrix.O365.AzureAdReporter.exe.config

And add the following at the end of each file before the </configuration> tag:

<system.net>
<defaultProxy>
<proxy
proxyaddress=”http://172.28.13.79:8080″
usesystemdefault=”True”
autoDetect=”False” />
</defaultProxy>
</system.net>

Before editing After editing
<?xml version=”1.0″ encoding=”utf-8″ ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0.30319″/>
<supportedRuntime version=”v2.0.50727″/>
</startup>
</configuration>
<?xml version=”1.0″ encoding=”utf-8″ ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0.30319″/>
<supportedRuntime version=”v2.0.50727″/>
</startup>
<system.net>
<defaultProxy>
<proxy
proxyaddress=”http://172.28.13.79:8080″
usesystemdefault=”True”
autoDetect=”False” />
</defaultProxy>
</system.net>

</configuration>

Where http://172.28.13.79:8080 represents your actual proxy settings.

Sharepoint Online

For SharePoint Online (C:\Program Files (x86)\Netwrix Auditor\SharePoint Online Auditing) edit the following files:
Netwrix.Common.AzureAdHelper.exe.config
SpaOnlineHost.exe.config

These two config files are more complicated, but the process is the same.
Add 
<system.net> section at end of each file before the </configuration> tag.

Go Up