Skip to content

Commit 508c459

Browse files
Create README.md
1 parent ea123a3 commit 508c459

1 file changed

Lines changed: 106 additions & 0 deletions

File tree

README.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Windows Location & Network Diagnostic Logger
2+
3+
A PowerShell script that logs location sources, geographic coordinates, timezone, public IP, and nearby Wi-Fi network details (SSIDs and BSSIDs) to CSV files.
4+
Designed to help troubleshoot incorrect geolocation, Wi-Fi positioning errors, or unexpected region mismatches on Windows systems.
5+
6+
Features
7+
8+
Logs latitude, longitude, accuracy, city, state, country
9+
10+
Detects whether location is derived from Wi-Fi or IP-based sources
11+
12+
Records your current public IP address
13+
14+
Scans and logs all nearby Wi-Fi SSIDs and BSSIDs
15+
16+
SSIDs and BSSIDs are strictly separated
17+
18+
Multiple networks recorded in a single row
19+
20+
Stores your current system timezone
21+
22+
Generates two CSV files:
23+
24+
location_log.csv – full continuous log
25+
26+
location_alerts.csv – entries where the detected city is not Brisbane
27+
28+
Useful for diagnosing:
29+
30+
Wrong-region search results
31+
32+
Incorrect website geolocation
33+
34+
Microsoft Location Services inconsistencies
35+
36+
Wi-Fi triangulation issues
37+
38+
VPN, ISP routing, or tower handover anomalies
39+
40+
Output Columns
41+
Timestamp
42+
Latitude
43+
Longitude
44+
Accuracy
45+
City
46+
State
47+
Country
48+
Source
49+
PublicIP
50+
SSIDs
51+
BSSIDs
52+
53+
54+
Each scan produces one row. SSIDs and BSSIDs are semicolon-separated lists.
55+
56+
How It Works
57+
58+
Uses Windows’ GeoCoordinateWatcher to acquire coordinates
59+
60+
Scans nearby Wi-Fi access points via netsh wlan show networks mode=bssid
61+
62+
Reverse-geocodes coordinates using OpenStreetMap (Nominatim)
63+
64+
Logs your system-reported timezone
65+
66+
Appends data to CSV files every 15 seconds
67+
68+
Use Cases
69+
70+
Troubleshooting incorrect GeoIP or Wi-Fi location on Windows
71+
72+
Investigating why Microsoft services think you're in the wrong city
73+
74+
Auditing network coverage, duplicate Wi-Fi networks, or rogue APs
75+
76+
Recording movement patterns for testing or analysis
77+
78+
Checking public IP changes over time (dynamic IP, VPN, carrier NAT)
79+
80+
Running the Script
81+
82+
Save the script as location_logger.ps1
83+
84+
Run PowerShell as Administrator
85+
86+
Execute:
87+
88+
Set-ExecutionPolicy Bypass -Scope Process -Force
89+
.\location_logger.ps1
90+
91+
92+
The script runs continuously until closed.
93+
94+
Notes
95+
96+
Uses the OpenStreetMap Nominatim API — please respect rate limits
97+
98+
Works on Windows 10 and Windows 11
99+
100+
Wi-Fi scanning requires wireless adapters enabled
101+
102+
BSSID and SSID parsing is strict to avoid mixed data
103+
104+
License
105+
106+
MIT License.

0 commit comments

Comments
 (0)