-
Notifications
You must be signed in to change notification settings - Fork 5
dnsfilter_uninstall.ps1
Corey Watson edited this page Dec 19, 2025
·
1 revision
Completely removes DNSFilter agent from a Windows system.
Completely removes DNSFilter agent from a Windows system including:
- Uninstalling the MSI package
- Stopping and removing services
- Deleting installation folders
- Cleaning up registry keys
- Resetting DNS settings to DHCP
- Flushing DNS cache
Completely removes DNSFilter agent from a Windows system including:
- Uninstalling the MSI package
- Stopping and removing services
- Deleting installation folders
- Cleaning up registry keys
- Resetting DNS settings to DHCP
- Flushing DNS cache
- Windows 10/11 or Windows Server
- Administrator privileges
None
- Uninstalls DNS Agent via WMI if installed
- Stops and deletes related Windows services
- Removes installation folders
- Cleans up registry keys
- Resets all NICs to use DHCP for DNS
- Flushes DNS cache
- No secrets in logs
- Requires elevated privileges
- Resets DNS to DHCP (may affect connectivity)
- 0 = Success
- 1 = Failure
[ UNINSTALLING DNS AGENT ]
--------------------------------------------------------------
DNS Agent : Found
Uninstall : SUCCESS
[ REMOVING SERVICES ]
--------------------------------------------------------------
DNS Agent : Stopped and deleted
DNSFilter Agent : Not found (skipped)
[ REMOVING FOLDERS ]
--------------------------------------------------------------
C:\Program Files\DNS Agent : Removed
[ CLEANING REGISTRY ]
--------------------------------------------------------------
HKLM:\SOFTWARE\DNSAgent : Removed
[ RESETTING DNS ]
--------------------------------------------------------------
Ethernet : Reset to DHCP
Wi-Fi : Reset to DHCP
DNS Cache : Flushed
[ FINAL STATUS ]
--------------------------------------------------------------
SCRIPT SUCCEEDED
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps
- View Script Source
- Scripts - Back to script index