A collection of practical PowerShell scripts published alongside technical articles on MSTechTalk.
These scripts help IT professionals, Microsoft 365 administrators, consultants, and technology teams automate administrative tasks, generate reports, and better understand their Microsoft environments.
Tools for reporting on Microsoft 365 Copilot usage and discovering agents in your organization.
- Script:
Get-CopilotAgentUsage.ps1 - Features: Copilot usage reporting, agent inventory, owner information, and agent usage metrics.
- Requirements: PowerShell 7.2 or later and the required Microsoft Graph permissions.
- Documentation: Copilot and Agents Usage
- Open the folder for the script you want to use.
- Read its README for prerequisites, permissions, installation instructions, and examples.
- Review the PowerShell code before running it.
- Test in a suitable environment before using it in production.
Requirements and permissions vary by script. Refer to each project's documentation.
- Scripts are provided for educational and administrative purposes.
- Review the code and validate permissions before execution.
- Never commit passwords, access tokens, client secrets, or sensitive organizational data.
- Microsoft Graph APIs, permissions, licensing, and product capabilities may change over time.
Adnan Amin is a Microsoft MVP since 2015 and a Microsoft technology consultant with over 20 years of experience in Microsoft technologies.
Through MSTechTalk, he shares technical articles, implementation guidance, and practical resources covering Microsoft 365, SharePoint, Microsoft Teams, Power Platform, Microsoft Copilot, and AI agents.
- Blog: MSTechTalk
- GitHub: adnanamin
These scripts are provided as-is, without warranties. You are responsible for reviewing and testing them and for ensuring that their use complies with your organization's policies and security requirements.