Apr 04 2023 06:08 AM - edited Apr 04 2023 06:29 AM
Hi everyone,
Does anyone know how to automate exporting users with their license information and set it to be emailed to an admin each month? Using MFA enabled accounts so it looks like impossible to schedule this task with PowerShell script. Would be nice to find a guide if it's doable.
Thanks
Apr 04 2023 10:34 AM
Apr 05 2023 01:01 AM
Hi,
Thank you for your time and reply but unfortunately this won't work because I am using MFA and this script will ask for logon credentials and MFA code like the one I already have. I am after something more advanced so it will automate the logon process and MFA. Can something like this be done with Azure Automation?
Thanks
Apr 05 2023 02:06 AM
@comptech8534 yes you can create a PowerShell runbook in azure automation and schedule the script to run based on your schedule. you can find the steps required in the below link.
Tutorial - Create a PowerShell Workflow runbook in Azure Automation | Microsoft Learn
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.