Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitlocker has moved from beta to v1.0 (Get-IntuneManagedDeviceBitLockerKeyPresence) #55

Open
fr3dr1x opened this issue Nov 23, 2022 · 2 comments

Comments

@fr3dr1x
Copy link

fr3dr1x commented Nov 23, 2022

Line 335 in Get-IntuneManagedDeviceBitLockerKeyPresence.ps1 should look like:

$BitLockerRecoveryKeys = Invoke-MSGraphOperation -Get -APIVersion "v1.0" -Resource "informationProtection/bitlocker/recoveryKeys?`$select=id,createdDateTime,deviceId" -Headers $AuthenticationHeader -Verbose:$VerbosePreference

@phillipwp1
Copy link

Worked for me today. Thank you!

@adelamora-vtsf
Copy link

adelamora-vtsf commented Oct 25, 2023

I cannot use this script, it returns errors on both getting the auth token, and retrieving data.
At first I get this error:
See https://aka.ms/msal-net-invalid-client for details. Original exception:
AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

When I modify the script to provide a client secret, and I change the line as mentioned above, I then get this error:

VERBOSE: GET
https://graph.microsoft.com/v1.0/informationProtection/bitlocker/recoveryKeys?$select=id,createdDateTime,deviceId
VERBOSE: Existing token found but has expired, requesting a new token
WARNING: Unhandled error occurred in function. Error message: You cannot call a method on a null-valued expression.
VERBOSE: GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=operatingSystem eq
'Windows'&select=azureADDeviceId&$select=deviceName,id,azureADDeviceId
VERBOSE: Existing token found but has expired, requesting a new token
WARNING: Unhandled error occurred in function. Error message: You cannot call a method on a null-valued expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants