Disable passive connectivity tests (breaks internet connection status)
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: High
System Functionality / Data Loss Risk: High
This action improves privacy with high impact when you run the recommended script.
- Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script stops passive connectivity checks on your Windows device.
Passive connectivity tests are also known as Network Connectivity Status Indicator (NCSI) 1 or passive polling 1 2 3 4. It tracks the network activity of applications on your computer 1 3. This feature is turned on by default 1. These tests run every 15 seconds by default 5 6. They use information from received data, such as recently sent or received packets and their Time To Live (TTL) values, to determine network status 7.
When NCSI fails to check internet connectivity, it opens the MSN Portal in your default browser 1.
This involves making an HTTP connection to http://www.msftconnecttest.com/redirect
and then to the MSN Portal 1.
This method may expose your activities to Microsoft, bypass local network rules, and leak network configuration details,
posing privacy and security risks.
It may also inadvertently load external content or scripts from the MSN Portal, introducing vulnerabilities or tracking mechanisms.
Malicious actors may exploit this behavior to detect active internet connections or trigger specific network activities,
compromising your privacy and security.
Disabling passive polling enhances privacy by reducing continuous network monitoring. It may also improve system performance by decreasing background network activity. Disabling passive connectivity tests prevents Windows from automatically connecting to Microsoft servers and opening external web pages 1. This reduces the risk of data leakage, tracking, and potential exploitation of this automated network activity. It can also improve security because passive probes sometimes conflict with VPN software 7 8 and firewalls 7 9. Disabling them may improve system functionality when using such security or privacy software 8 9.
However, this change has significant drawbacks. It may cause the system to incorrectly report no internet connection, even when one exists 2 10 11. This can affect functionality of system components and applications that rely on NCSI for network information 1. For example, it can interfere with Windows' ability to download updates 1. Microsoft does not recommend disabling the NCSI probes 1 7.
This may lead to:
- Lack of immediate feedback on network status.
- Potential functionality issues in the system and applications that rely on NCSI for network information.
- Reduced ability of Windows and other components to determine internet connectivity.
- False reporting of no internet connection even though there is internet connectivity.
Technical Details
This script configures:
HKLM\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator!DisablePassivePolling
1 2 3. This group policy controls passive polling 1 2 3. It's used by system components such asncsi.dll
4.HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet!PassivePollPeriod
5 6 It's used by system components such asncsi.dll
4.
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
Consider creating a system restore point before doing any changes.
Sources
- An Internet Explorer or Edge window opens when your computer connects to a corporate network or a public network - Windows Client. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/internet-explorer-edge-open-connect-corporate-public-network
Archived: https://web.archive.org/web/20240620094739/https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/internet-explorer-edge-open-connect-corporate-public-network - Internet probe Icon - NCSI - Microsoft Q&A. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/answers/questions/474998/internet-probe-icon-ncsi
Archived: https://web.archive.org/web/20240722112723/https://learn.microsoft.com/en-us/answers/questions/474998/internet-probe-icon-ncsi - Specify passive polling. admx.help. (2024).
Original: https://admx.help
Archived: https://web.archive.org/web/20240729100358/https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.NCSI::NCSI_PassivePolling - 10_0_22623_1020/C/Windows/System32/ncsi.dll.strings at 0225ce2c6d74641e63613c0a57c5c6ebea2df4d8 · privacysexy-forks/10_0_22623_1020. github.com. (2024).
Original: https://github.com/privacysexy-forks/10_0_22623_1020/blob/0225ce2c6d74641e63613c0a57c5c6ebea2df4d8/C/Windows/System32/ncsi.dll.strings
Archived: https://web.archive.org/web/20240810075215/https://github.com/privacysexy-forks/10_0_22623_1020/blob/0225ce2c6d74641e63613c0a57c5c6ebea2df4d8/C/Windows/System32/ncsi.dll.strings - Network Connectivity Status Indicator FAQ for Windows. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/windows-server/networking/ncsi/ncsi-frequently-asked-questions
Archived: https://web.archive.org/web/20240114123854/https://learn.microsoft.com/en-us/windows-server/networking/ncsi/ncsi-frequently-asked-questions - Network Connection Status Indicator (NCSI) troubleshooting guidance - Windows Server. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-ncsi-guidance
Archived: https://web.archive.org/web/20240722112607/https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-ncsi-guidance - The Network Connection Status Icon - Microsoft Enterprise Networking Team - Site Home - TechNet Blogs. blogs.technet.com. (2012).
Original: http://blogs.technet.com/b/networking/archive/2012/12/20/the-network-connection-status-icon.aspx
Archived: https://web.archive.org/web/20121226172641/http://blogs.technet.com/b/networking/archive/2012/12/20/the-network-connection-status-icon.aspx - Openvpn breaks NLA and NCSI services for Windows / Office 365 - OpenVPN Support Forum. forums.openvpn.net. (2024).
Original: https://forums.openvpn.net/viewtopic.php
Archived: https://web.archive.org/web/20240729100350/https://forums.openvpn.net/viewtopic.php?t=27321 - no internet / sometimes simplewall automatically denies internet · Issue #709 · henrypp/simplewall. github.com. (2024).
Original: https://github.com/henrypp/simplewall/issues/709
Archived: https://web.archive.org/web/20240729100551/https://github.com/henrypp/simplewall/issues/709 - Servers Reporting No Internet After Restart · Issue #136 · The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool. github.com. (2024).
Original: https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/issues/136
Archived: https://web.archive.org/web/20240729100329/https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/issues/136 - superuser.com. (2024).
Original: https://superuser.com/questions/1400187/get-rid-of-false-no-internet-network-message
Archived: https://web.archive.org/web/20240525013542/https://superuser.com/questions/1400187/get-rid-of-false-no-internet-network-message
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable passive connectivity tests (breaks internet connection status)" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable passive connectivity tests (breaks internet connection status)" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable passive connectivity tests (breaks internet connection status)
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Set the registry value: "HKLM\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator!DisablePassivePolling"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator'; $data = '1'; reg add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator' /v 'DisablePassivePolling' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet!PassivePollPeriod"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet'; $data = '0'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet' /v 'PassivePollPeriod' /t 'REG_DWORD' /d "^""$data"^"" /f"
Ijo6IERlbGV0ZSB0aGUgcmVnaXN0cnkgdmFsdWUgXCJIS0xNXFxTT0ZUV0FSRVxcUG9saWNpZXNcXE1pY3Jvc29mdFxcV2luZG93c1xcTmV0d29ya0Nvbm5lY3Rpdml0eVN0YXR1c0luZGljYXRvciFEaXNhYmxlUGFzc2l2ZVBvbGxpbmdcIlxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcInJlZyBkZWxldGUgJ0hLTE1cXFNPRlRXQVJFXFxQb2xpY2llc1xcTWljcm9zb2Z0XFxXaW5kb3dzXFxOZXR3b3JrQ29ubmVjdGl2aXR5U3RhdHVzSW5kaWNhdG9yJyAvdiAnRGlzYWJsZVBhc3NpdmVQb2xsaW5nJyAvZiAyPiRudWxsXCJcbjo6IERlbGV0ZSB0aGUgcmVnaXN0cnkgdmFsdWUgXCJIS0xNXFxTWVNURU1cXEN1cnJlbnRDb250cm9sU2V0XFxTZXJ2aWNlc1xcTmxhU3ZjXFxQYXJhbWV0ZXJzXFxJbnRlcm5ldCFQYXNzaXZlUG9sbFBlcmlvZFwiXG5Qb3dlclNoZWxsIC1FeGVjdXRpb25Qb2xpY3kgVW5yZXN0cmljdGVkIC1Db21tYW5kIFwicmVnIGRlbGV0ZSAnSEtMTVxcU1lTVEVNXFxDdXJyZW50Q29udHJvbFNldFxcU2VydmljZXNcXE5sYVN2Y1xcUGFyYW1ldGVyc1xcSW50ZXJuZXQnIC92ICdQYXNzaXZlUG9sbFBlcmlvZCcgL2YgMj4kbnVsbFwiIg==
Help
How to apply or restore "Disable passive connectivity tests (breaks internet connection status)" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable connectivity checks
- Disable OS data collection
This category contains scripts that disable various connectivity checks performed by Windows. Connectivity checks allow Windows to assess network status and qualit...
Disable OS data collection — to reduce data exposure leveraging important data privacy safeguard on Windows. What follows is, this guidance provides instructions t...
Same Goal
Other guides in Disable connectivity checksSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.