microsoft / Intune-Resource-Access

Sample code and scripts for interfacing with the Intune Resource Access APIs.
MIT License
55 stars 59 forks source link

Impossible to renew or extent the authentication token lifespan none-interactively #75

Open MonteCrypto opened 4 years ago

MonteCrypto commented 4 years ago

When PowerShell script runs “none-interactively” as a scheduled job an exception “one more error occurred” is thrown. As a minimum introduction of API call that can extend the lifespan of token would be helpful so one can launch the script interactively and run it for a longer period of time.