Open aggietallboy opened 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.
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.
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.