Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear Arumai Kumaran,
Good day! Thank you for reaching out to Microsoft community.
As per your description, it seems like that you are looking to create a PowerShell script that uses certificate-based authentication to access MSCommerce and check if any Microsoft product policies have the Self-Service Purchase setting enabled for end users. The script should:
- Run automatically as a scheduled task monthly.
- Output the results to a file that can be attached to a service desk ticket.
However, there is another specific channel for your mentioned concern where you will get some possible information for certain specific resources and platform from our related community members.
I understand your concern but since your problem is related to PowerShell script, I would also like to suggest you post your concern in the related community i.e., Ask a question - PowerShell | Microsoft Community Hub Q&A to get the detailed help from the experts.
Apologies for redirecting you to different community as the members in the category posted focus on the users with out of the box concerns on Microsoft 365 and have limited knowledge on the MS PowerShell; so, to get the fast and better assistance, we have redirected you in the correct path.
Appreciate your patience and understanding. Have a great day!!
Best Regards,
S M Nazmun Nur