Wi-Fi password

Alexandr Nalvarte Dvigalov 0 Reputation points
2024-03-23T11:26:25.6633333+00:00

Hi,

If I were to retrieve a Wi-Fi password set to a policy profile in Intune from powershell, how should I go about doing that?

Thank you

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 72,700 Reputation points MVP Volunteer Moderator
    2024-03-23T11:55:10.67+00:00

    This is not supported.

    You can use PowerShell to retrieve other information about Wi-Fi profiles configured in Intune, such as profile names, SSIDs, authentication methods, etc., using the Intune PowerShell module. This module allows you to manage various aspects of Intune configuration, including device profiles.

    To interact with Intune via PowerShell, you would typically install and import the Microsoft.Graph.Intune module, authenticate with your Intune tenant, and then use cmdlets like Get-IntuneManagedDevice and Get-IntuneManagedDeviceConfiguration to retrieve information about managed devices and configurations, including Wi-Fi profiles.

    Here's a basic example of how you can use PowerShell to retrieve Wi-Fi profile information from Intune:

    # Install the Intune PowerShell module
    Install-Module -Name Microsoft.Graph.Intune
    # Import the module
    Import-Module Microsoft.Graph.Intune
    # Connect to Intune (you will be prompted to authenticate)
    Connect-MSGraph
    # Get Wi-Fi profiles
    $wifiProfiles = Get-IntuneManagedDeviceWiFiConfiguration -Filter "platform eq 'windows'"
    # Output Wi-Fi profile information
    $wifiProfiles | Select-Object -Property DisplayName, SSID, AuthenticationMethod, EapType
    
    

    This script will retrieve and display basic information about Wi-Fi profiles configured in Intune for Windows devices. However, it won't include sensitive information like passwords.


    hth

    Marcin

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.