Welcome to Cloudcooks-M365Cooking — a buffet of automation scripts, Graph API tricks, and Microsoft 365 configuration recipes. Whether you’re looking to harden your tenant, deploy apps at scale, or automate repetitive admin work, this repo has something tasty for your IT kitchen.
This repository serves as a collection of:
- PowerShell Scripts – Prepped and ready for Intune, Entra ID, and Microsoft Defender.
- Graph API Recipes – Quick calls and complete scripts to supercharge your M365 automation.
- Configuration Blueprints – Tested Intune policies, Conditional Access templates, and security baselines.
- Proactive Remediations – Intune detection + remediation scripts to keep your environment clean.
- Security Garnishes – Small tweaks and hardening steps to spice up your tenant security.
Before you start cooking:
-
Windows PowerShell 5.1 or PowerShell 7+
-
Installed Microsoft.Graph PowerShell module
Install-Module Microsoft.Graph -Scope CurrentUser
-
Appropriate M365 admin permissions (PIM-ready recommended)
-
Some scripts may require AzureAD or other legacy modules
-
Clone the repo
git clone https://github.com/CLOUDCOOKCH/Cloudcooks-M365Cooking.git
-
Navigate to the recipe you need
-
Read the ingredients (parameters, permissions, and notes in the script header)
-
Run it — preferably in a test tenant before production
# Example: Get all devices missing a compliance policy
Connect-MgGraph -Scopes "DeviceManagementConfiguration.Read.All"
Get-MgDeviceManagementManagedDevice | Where-Object { -not $_.ComplianceState }M365 admins often reinvent the wheel — or worse, Google random scripts with zero documentation. This repo aims to change that by providing documented, tested, and security-conscious scripts that you can actually trust.
Pull requests are welcome! If you’ve cooked up a new recipe, just:
-
Fork this repo
-
Add your script in the correct category
-
Include a comment header with:
- Script purpose
- Requirements
- Parameters
- Expected output
-
Submit a PR 🍽
This project is licensed under the MIT License — do whatever you want, but please don’t serve undercooked security.
CloudCook – Serving spicy M365 automation, one dish at a time. Follow me for more cloud recipes: • Blog