microsoftgraph / powershell-intune-samples

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.36k stars 657 forks source link

Invoke_DeviceAction_Set.ps1 not working Authorization Access in powershell 7 #222

Open Martinfx opened 2 years ago

Martinfx commented 2 years ago

Hi, i write again with other issue in this version powershell 7 and Windows 11 (Authorization Access Token is null, please re-run authentication...) In version PSVersion 5.1.22000.832 i have not problem. Thank you

Edition Windows 11 Pro
Version 21H2
Installed on    ‎19.‎07.‎2022
OS build    22000.978
Experience  Windows Feature Experience Pack 1000.22000.978.0

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0