This PowerShell script will gather information about your computer's network configuration and connectivity to help us understand your current SonicWall CSE Banyan setup and plan your migration to FortiSASE.
Important: This script only reads information from your system. It does not make any changes to your configuration.
- You must run this script as Administrator
- The script requires elevated privileges to access network and system information
- Windows PowerShell 5.1 or later (included in Windows 10/11)
- Windows 10, Windows 11, or Windows Server 2016+
- Save the
NetworkDiscovery.ps1file to your computer - Recommended location:
C:\Temp\or your desktop
- Press
Windows Key + X - Select "Windows PowerShell (Admin)" or "Terminal (Admin)"
- If prompted by User Account Control (UAC), click "Yes"
# If you saved it to C:\Temp\
cd C:\Temp\
# If you saved it to the same folder as these instructions
cd "C:\Path\To\Your\Script\Folder"If you get an execution policy error, run this command first:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserWhen prompted, type Y and press Enter.
.\NetworkDiscovery.ps1- Tests legitimate business websites and LOB applications
- Includes comprehensive traceroute analysis
- Takes 5-10 minutes to complete
- Safe for all corporate environments
.\NetworkDiscovery.ps1 -SkipTraceroute- Skips detailed routing analysis for faster execution
- Takes 2-3 minutes to complete
- Good for basic connectivity assessment
.\NetworkDiscovery.ps1 -FullSiteScan- Tests additional website categories to identify filtering policies
- Includes gaming, entertainment, and other categories typically blocked
- Use only if requested by your IT consultant
- Takes 10-15 minutes to complete
.\NetworkDiscovery.ps1 -OutputPath "C:\Temp\MyNetworkReport.txt"- The script will display progress information as it runs
- Standard scan: 5-10 minutes
- Quick scan: 2-3 minutes
- Full scan: 10-15 minutes
- Do not close the PowerShell window while it's running
- The script creates a timestamped report file in the same folder as the script
- File name format:
NetworkDiscovery_YYYYMMDD_HHMMSS.txt - The script will automatically open the file in Notepad when complete
- Active network adapters and IP addresses
- Network routing tables and gateways
- DNS server configuration
- Proxy settings
- LOB Applications: Customized for your organization
- Current active: Egnyte, Office365, NitroPDF, RingCentral
- Script includes 70+ business applications that can be enabled as needed
- Categories: CRM, Collaboration, Project Management, Cloud Storage, Accounting, HR, and more
- Cloud Services: AWS, Azure, Google Cloud
- Popular Websites: 60+ legitimate sites across 12 categories
- Optional: Additional categories (gaming, entertainment, etc.) with
-FullSiteScan - Popular Websites: 60+ legitimate sites across 12 categories
- Optional: Additional categories (gaming, entertainment, etc.) with
-FullSiteScan
- Domain join status (Active Directory, Azure AD/Entra ID)
- Installed security software (Banyan, SonicWall, antivirus, etc.)
- Windows Firewall configuration
- Active network connections and processes
- Comprehensive traceroute to key destinations
- Route pattern analysis for ZTNA/proxy detection
- DNS server routing paths
- Infrastructure identification (CDNs, cloud providers, security appliances)
- Internet access restrictions
- Content filtering effectiveness
- Unexpected access patterns
- Security policy gaps
- Clean, organized sections with clear headings
- Visual indicators (✓ for success, ✗ for failures)
- Summary analysis and recommendations
- No confusing timestamps on every line
- Automatic detection of ZTNA infrastructure
- Identification of proxy/filtering appliances
- Assessment of security policy effectiveness
- Recommendations for network optimization
Error: cannot be loaded because running scripts is disabled on this system
Solution:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserProblem: Script not running as Administrator
Solution:
- Close PowerShell
- Right-click on PowerShell icon
- Select "Run as Administrator"
- Try again
Normal behavior:
- Standard scan with traceroute: 5-10 minutes
- Full site scan: 10-15 minutes
- Network tests and traceroute analysis take time
What to do:
- Wait for completion (look for progress messages)
- Use
-SkipTraceroutefor faster execution if needed - Do not close the window
Check:
- Look in the same folder as the script for the timestamped file
- Check if PowerShell showed any error messages
- Ensure you have write permissions to the folder
- Try specifying a custom output path:
-OutputPath "C:\Temp\Report.txt"
Common causes:
- Network firewalls blocking traceroute
- ICMP disabled on network
- Very restrictive network policies
Solution: Use -SkipTraceroute to bypass this analysis
- ✅ Network configuration (public information)
- ✅ Installed software list (names and versions only)
- ✅ System settings (non-sensitive)
- ✅ DNS and connectivity information
- ✅ Network routing paths
- ✅ Windows services status
- ❌ Personal files or documents
- ❌ Passwords or credentials
- ❌ Email content
- ❌ Browsing history
- ❌ Application data
- ❌ User personal information
- ❌ File contents
- Website testing: Only tests if sites are reachable (no content accessed)
- DNS queries: Only domain name resolution (no browsing data)
- Network paths: Only routing information (no data transmitted)
- Software detection: Only installed program names (no configuration details)
- The output file contains technical network information only
- No personally identifiable information is collected
- You can review the entire output file before sharing
- Send only the generated
.txtfile to your IT consultant
- Open the generated report file (opens automatically in Notepad)
- Review the contents - it's all technical network information
- Look for any sensitive information you're uncomfortable sharing (there shouldn't be any)
- Note the clear, human-readable format with sections and summaries
The report includes several main sections:
- Network Adapters: Your network connections and IP addresses
- DNS Configuration: Your DNS servers
- Domain Status: Whether you're joined to Active Directory or Azure AD
- LOB Application Connectivity: Tests to your business applications
- Website Connectivity: Internet access testing
- Traceroute Analysis: Network routing paths (if not skipped)
- Security Software: Installed security applications and services
- Email the
.txtfile to your designated IT consultant - The file name includes the date/time it was generated
- Keep a copy for your records if desired
- Mention which scan type you used (standard, quick, or full)
- You can delete the script file after use:
NetworkDiscovery.ps1 - The output file can be deleted after sharing with IT
- Reset execution policy if desired:
Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope CurrentUser
If you encounter any issues:
- Take a screenshot of any error messages
- Note the exact step where the problem occurred
- Note which scan type you were trying to run
- Contact your IT consultant with:
- Screenshot of the error
- Description of what you were doing
- Your Windows version (Windows 10/11)
- Which command you used to run the script
The new human-readable report format looks like:
============================================================
NETWORK DISCOVERY REPORT
============================================================
Generated: August 29, 2025 at 02:30 PM
Computer: DESKTOP-ABC123
Scan Type: STANDARD SCAN (legitimate sites only)
[SUMMARY] Report saved to: .\NetworkDiscovery_20250829_143015.txt
============================================================
NETWORK ADAPTERS
============================================================
--- Active Network Connections: ---
* Wi-Fi
Type: Intel(R) Wi-Fi 6E AX211 160MHz
Speed: 721 Mbps
IP Address: 192.168.1.100/24
============================================================
LOB APPLICATION CONNECTIVITY
============================================================
--- Egnyte Application: ---
[SUCCESS] egnyte.com resolves to: 34.102.136.180, 34.149.100.209
[SUCCESS] egnyte.com - Connected successfully
--- Office365 Application: ---
[SUCCESS] outlook.office365.com resolves to: 52.97.148.132
[SUCCESS] outlook.office365.com - Connected successfully
--- Salesforce Application: ---
[SUCCESS] salesforce.com resolves to: 136.146.176.122
[SUCCESS] salesforce.com - Connected successfully
--- Slack Application: ---
[SUCCESS] slack.com resolves to: 52.85.151.101
[SUCCESS] slack.com - Connected successfully
If you're comfortable with PowerShell, you can customize the scan:
# Quick assessment without routing analysis
.\NetworkDiscovery.ps1 -SkipTraceroute
# Comprehensive policy assessment
.\NetworkDiscovery.ps1 -FullSiteScan
# Custom output location with full analysis
.\NetworkDiscovery.ps1 -OutputPath "\\server\share\reports\network_report.txt"
# Fast comprehensive scan
.\NetworkDiscovery.ps1 -FullSiteScan -SkipTracerouteThe script includes a comprehensive list of 70+ popular business applications that can be easily enabled or disabled by commenting/uncommenting lines in the script.
- Open the script file in a text editor
- Find the LOB Applications section (around line 40)
- Uncomment applications the client uses by removing
#from the beginning of lines - Add custom applications following the same format
CRM & Sales:
- Salesforce, HubSpot, Pipedrive, Zoho CRM
Collaboration & Communication:
- Slack, Microsoft Teams, Zoom, WebEx, GoToMeeting, Discord
Project Management:
- Asana, Trello, Monday.com, Jira, Confluence, Notion, ClickUp
Cloud Storage & File Sharing:
- Dropbox, Box, Google Drive, OneDrive, SharePoint
Accounting & Finance:
- QuickBooks, Xero, Sage, FreshBooks, Wave
HR & Payroll:
- ADP, Paychex, BambooHR, Workday, Gusto
ERP Systems:
- NetSuite, SAP, Oracle, Dynamics365
Design & Creative:
- Adobe Creative Suite, Canva, Figma, InVision
Development & IT:
- GitHub, GitLab, Jenkins, Docker, AWS, Azure, Google Cloud
Marketing & Analytics:
- Google Analytics, Mailchimp, Constant Contact, HootSuite
E-commerce:
- Shopify, BigCommerce, WooCommerce, Magento
Legal & Compliance:
- DocuSign, HelloSign, PandaDoc, LegalZoom
Industry-Specific:
- Procore (Construction), AutoCAD (Engineering), Epic/Cerner (Healthcare)
Backup & Security:
- Carbonite, Backblaze, LastPass, 1Password, Bitwarden
Education & Training:
- Blackboard, Canvas, Moodle, Coursera, Udemy
# For a client using Salesforce and Slack, uncomment these lines:
"Salesforce" = @("*.salesforce.com", "login.salesforce.com", "*.force.com")
"Slack" = @("*.slack.com", "app.slack.com", "files.slack.com")
# For a client using QuickBooks and DocuSign:
"QuickBooks" = @("*.intuit.com", "qbo.intuit.com", "*.quickbooks.com")
"DocuSign" = @("*.docusign.com", "*.docusign.net")
# To add a custom application not in the list:
"CustomApp" = @("app.customdomain.com", "*.customdomain.com", "api.customdomain.com")- One script fits all clients - No need for separate versions
- Easy customization - Just uncomment relevant applications
- Comprehensive coverage - 70+ popular business apps included
- Organized by category - Easy to find relevant applications
- Future-proof - Easy to add new applications as they become popular
- Standard: Tests ~60 legitimate websites + active LOB apps + traceroute (recommended)
- Quick: Same as standard but skips traceroute (2-3 minutes)
- Full: Adds 50+ additional sites in restricted categories (policy assessment)
- Edit script to uncomment client's LOB applications
- Test locally if possible
- Choose scan type based on client environment and time constraints
- Provide instructions to client contact
Small Business:
"Office365" = @("*.office365.com", "*.microsoftonline.com")
"QuickBooks" = @("*.intuit.com", "qbo.intuit.com")
"Dropbox" = @("*.dropbox.com", "dropbox.com")Sales Organization:
"Salesforce" = @("*.salesforce.com", "login.salesforce.com")
"Slack" = @("*.slack.com", "app.slack.com")
"Zoom" = @("*.zoom.us", "zoom.us")Creative Agency:
"Adobe_Creative" = @("*.adobe.com", "*.adobe.io")
"Figma" = @("*.figma.com", "figma.com")
"Slack" = @("*.slack.com", "app.slack.com")Healthcare:
"Epic" = @("*.epic.com", "*.epiccare.com")
"DocuSign" = @("*.docusign.com", "*.docusign.net")
"Office365" = @("*.office365.com", "*.microsoftonline.com")- Quick scan (
-SkipTraceroute): 2-3 minutes - Standard scan: 5-10 minutes
- Full scan (
-FullSiteScan): 10-15 minutes - Full + Quick (
-FullSiteScan -SkipTraceroute): 5-8 minutes
- Look for [ERROR] entries in LOB app connectivity
- Check routing patterns for proxy/ZTNA infrastructure
- Review DNS resolution for filtering or redirection
- Examine firewall rules for security software presence
- Analyze filtering policies if using
-FullSiteScan
Questions? Contact your IT consultant for assistance.