--- title: "Get list of previously connected Wi-Fi networks on Windows devices" slug: "get-list-of-previously-connected-wi-fi-networks-on-windows-devices" updated: 2024-02-02T13:36:51Z published: 2024-02-02T13:36:51Z canonical: "help.scalefusion.com/get-list-of-previously-connected-wi-fi-networks-on-windows-devices" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.scalefusion.com/llms.txt > Use this file to discover all available pages before exploring further. # Get list of previously connected Wi-Fi networks on Windows devices Unsecured Wi-Fi networks lurk around every corner, posing a major risk to corporate data. That's why administrators need to keep a watchful eye on where their devices are connecting. Monitoring Wi-Fi connections helps ensure they only land on safe and authorized networks. The following PowerShell script helps the IT Admins to get the list of previously connected Wi-Fi networks on their managed Windows devices. 1. Create a file on your desktop, for example, **list_of_previously_connected_wifi_networks.ps1** and open it in a text editor like notepad++ 2. Copy the contents below to the file or click [here](https://cdn.document360.io/175c0eac-012f-4410-bdc5-ac60794f82d8/Images/Documentation/fetch%20the%20list%20of%20previously%20connected%20Wi-Fi%20networks.ps1) to download the file. ```powershell Netsh wlan show profiles |Write-Output ``` 3. You will be able to see the list of previously connected Wi-Fi networks in the Output tab on the View Status report on the dashboard. ![](https://cdn.document360.io/175c0eac-012f-4410-bdc5-ac60794f82d8/Images/Documentation/image-B7B2I69R.png) 4. Follow [our guide](/docs/deploy-powershell-scripts-using-scalefusion) to upload & publish the PowerShell script using Scalefusion Dashboard. > [!CAUTION] > #### > > Please note that to use the PowerShell scripts, the Scalefusion MDM Agent Application must be installed on the device(s). Please follow [our guide](/docs/scalefusion-mdm-agent-application) to publish and install the Scalefusion MDM Agent Application. > [!CAUTION] > #### Notes: > > 1. The scripts and their contents are sourced from various albeit authenticated Microsoft sources and forums. > 2. Please validate the scripts on a test machine before deploying them on all your managed devices. > 3. Scalefusion has tested these scripts, however, Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the incorrect usage of these scripts.