WFProfileList/WFProfileList.psm1

<#
.SYNOPSIS
 
Gets the Profile Names connected by Wi-Fi.
 
.DESCRIPTION
 
The Get-WFProfileList cmdlet Gives the Profile Names which were connected over the Wi-Fi.
 
.EXAMPLE
 
PS> Get-WFProfileList
The List of Network Profiles :
JioFi3_2C1941 6
JioFi3_2C1941 8
 
#>

function Get-WFProfileList {
    echo ""
    echo ""

    Write-Output  "The List of Network Profiles :"

    echo ""
    Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\' | Get-ItemPropertyValue -Name profilename

}