Try switching to the beta version first, as the cmdlet is only available therein:
Select-MgProfile beta
Get-MgDeviceManagementManagedDeviceEncryptionState
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I'm trying to pull information on devices encryption state using the Powershell SDK and Get-MgDeviceManagementManagedDeviceEncryptionState. However, using it (after doing both Install-Module Microsoft.Graph.DeviceManagement
and Import-Module Microsoft.Graph.DeviceManagement
) yields the following result:
Get-MgDeviceManagementManagedDeviceEncryptionState : The term 'Get-MgDeviceManagementManagedDeviceEncryptionState' is not recognized as the name of a cmdlet, function, script file, or operable program.
What am I missing? I'm unable to find another way to retrieve this information.
Connect-MgGraph
and Get-MgDevice
both work fine, and it seems that this cmdlet should exist according to https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.devicemanagement/get-mgdevicemanagementmanageddeviceencryptionstate?view=graph-powershell-beta
Try switching to the beta version first, as the cmdlet is only available therein:
Select-MgProfile beta
Get-MgDeviceManagementManagedDeviceEncryptionState