MSEndpointMgr / Intune

Microsoft Intune scripts
MIT License
667 stars 247 forks source link

Microsoft Intune PowerShell service principal Application ID. #74

Open Belikemigs opened 7 months ago

Belikemigs commented 7 months ago

With the recent announcement from Microsoft that scripts containing the Intune application ID (d1ddf0e4-d672-4dae-b554-9d5bdfd93547) will need to be updated with the new application ID. Does anyone know if this one or those in PowerShell gallery when using "Install-Script -Name Upload-WindowsAutopilotDeviceInfo"  will be updated?

garlicbreaddessert commented 6 months ago

We are seeing the result of this now - getting AADSTS700016 errors. We use this script a lot so if it could be fixed ASAP we'd be very grateful!!

decommentator commented 6 months ago

same here. An update would be very nice

Speed1 commented 6 months ago

We have switched to Get-WindowsAutoPilotInfo for now. It uses the Graph Api.

Install-Script -Name Get-WindowsAutoPilotInfo -Force
Get-WindowsAutoPilotInfo.ps1 -online
bezik46 commented 5 months ago

That one work. The original script does not, if application is re-created (as per this - https://learn.microsoft.com/en-us/answers/questions/1659638/weve-detected-a-microsoft-intune-powershell-script?page=1 ), all I get is an error:

AADSTS500119: Redirect URIs with urn: schemes are prohibited. Use a different scheme, or https://login.microsoftonline.com/common/oauth2/nativeclient

Orava2 commented 3 days ago

That one work. The original script does not, if application is re-created (as per this - https://learn.microsoft.com/en-us/answers/questions/1659638/weve-detected-a-microsoft-intune-powershell-script?page=1 ), all I get is an error:

AADSTS500119: Redirect URIs with urn: schemes are prohibited. Use a different scheme, or https://login.microsoftonline.com/common/oauth2/nativeclient

Did not work for me. URL says the version is 3.9 but the file is 3.5.

https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/3.9/Content/Get-WindowsAutopilotInfo.ps1