Cant'get access token using Graph API using certificate from Powershell

Saúl Zenteno Martinez 1 Reputation point

I'm trying to follow this article where we basically use a cert to access the Graph api using ´ Get-MSCloudIdMSGraphAccessTokenFromCert ´.

I've configured everything that the article ask for but when I reach the point to make the call to obtain the access token using
Get-MSCloudIdMSGraphAccessTokenFromCert -TenantDomain "" -ClientID 363917dc-e4ea-4ee4-9277-a58aa5095227 -Certificate (dir cert:\CurrentUser\My\CERTFOOTPRINT) I get the following error

   InvalidOperation: Unable to find type [AdalHelper].
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,449 questions
{count} votes