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 script not working #66

Open
ildrososgr opened this issue Aug 4, 2023 · 2 comments
Open

Bitlocker script not working #66

ildrososgr opened this issue Aug 4, 2023 · 2 comments

Comments

@ildrososgr
Copy link

Hello has anyone run the script successfully ?
After following the instructions and running the script like this :
.\Get-IntuneManagedDeviceBitLockerKeyPresence.ps1 -TenantID "xxxxxxxxxxxx" -ClientID "yyyyyyyyyy" -State NotPresent -Verbose

This returns all of my devices .
If run with state Present it returns none.

@adelamora-vtsf
Copy link

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, I then get this error:

VERBOSE: GET https://graph.microsoft.com/Beta/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.

@adharrissr1914
Copy link

adharrissr1914 commented Nov 28, 2023

Getting Message After Tenant and Client ID verified.
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