MSEndpointMgr / Intune

Microsoft Intune scripts
MIT License
667 stars 247 forks source link

Suggestion : Along with AppID add in the AppSecret capability #29

Open aggietallboy opened 3 years ago

aggietallboy commented 3 years ago
[parameter(Mandatory=$false, HelpMessage="Specify the AppRegistration Secret for the Application ID.")]
[ValidateNotNullOrEmpty()]
[string]$AppSecret,

And change the token retrieval:

$Global:AuthToken = Get-MSIntuneAuthToken -TenantName $TenantName -ClientID $ApplicationID -ClientSecret $AppSecret

As long as the custom AppID has appropriate permissions, it SHOULD be remotable.

aggietallboy commented 3 years ago

I'm also trying to tweak it to add the existing machine name -- have it running through remote powershell after making these changes.

Adding it to the DisplayName property isn't doing any good.