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

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,083 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,528 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 24,450 Reputation points MVP
    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 Answers by the question author, which helps users to know the answer solved the author's problem.