shell-intune-samples
AGENTS.md1.1k starsChanged 5 months agoMITView on GitHub
Canonical entry point for AI agents and human contributors. Read this first. This repository is a curated collection of sample shell scripts maintained by the Microsoft Intune Customer Experience Engineering (CXE) team. The samples show how to manage macOS and Linux devices with Microsoft Intune. They are provided for education and "the art of the possible" — download, test, and adapt them, and run them only in a non-production / test environment. Classification: non-production (samples / learning environment). The full…
- Installs packages
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about microsoft/shell-intune-samples
- setup-your-mac/Setup-Your-Mac“Run the multiple commend at a time for the application installation”GitHub · Mar 18, 2025
- twocanoes/xcreds“[Feature Request] Allow custom default user icon for new users”GitHub · Mar 11, 2024
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 1 is common, 3 are distinctive, and 1 is very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 31
Every script starts with a shebang, then the Microsoft copyright + MIT license header, then a ## banner with name, version, and a dated …
- Common: line 35
Never commit secrets (tokens, certs, private keys).
- Distinctive: line 56
Use short, imperative PR titles.
- Distinctive: line 58
All contributions require the Microsoft CLA (the CLA bot guides you).
- Distinctive: line 59
Keep PRs focused and reasonably sized.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — Intune Shell Script Samples
Canonical entry point for AI agents and human contributors. Read this first.
This repository is a curated collection of sample shell scripts maintained by the Microsoft Intune Customer Experience Engineering (CXE) team. The samples show how to manage macOS and Linux devices with Microsoft Intune. They are provided for education and "the art of the possible" — download, test, and adapt them, and run them only in a non-production / test environment.
Classification: non-production (samples / learning environment). The full compliance audit lives in
shell-intune-samples-oss-compliance-report.md(local, gitignored).
Repository map
| Path | What's here |
macOS/Apps/ | Scripts that download + install macOS apps via Intune |
macOS/Config/ | macOS configuration / hardening samples |
macOS/Custom Attributes/ | Shell-based custom attribute collectors |
macOS/Custom Profiles/ | Sample .mobileconfig configuration profiles |
macOS/Tools/ | Helper utilities (bundle IDs, beta tokens, migration) |
Linux/Apps/ | Linux app install samples |
Linux/Config/, Linux/Custom Compliance/, Linux/Misc/, Linux/WSL/ | Linux config, custom compliance, and WSL samples |
Conventions
See docs/conventions.md for the full style guide. In short:
- Every script starts with a shebang, then the Microsoft copyright + MIT license
header, then a
##banner with name, version, and a dated change log. - Scripts must be idempotent and safe to re-run.
- Log progress to a predictable location and exit non-zero on failure.
- Never commit secrets (tokens, certs, private keys).
Build / test / validate — the verify loop
There is no compile step; the scripts themselves are the deliverable. Validate a change before pushing with the one-command verify loop:
./scripts/verify.shIt runs shellcheck over every tracked *.sh and python3 -m py_compile over
every *.py. Install shellcheck first (brew install shellcheck on macOS,
apt-get install shellcheck on Linux).
Pull request conventions
See .github/instructions/telemetry.instructions.md and CONTRIBUTING.md.
- Branch from
master; name branchesfeature/...,fix/..., orchore/.... - Use short, imperative PR titles; describe what the sample does and how it was tested (OS version + Intune scenario, in a test environment).
- All contributions require the Microsoft CLA (the CLA bot guides you).
- Keep PRs focused and reasonably sized; split large changes.
Authority Map
How agents should treat each artifact in this repo.
| Artifact | Authority |
AGENTS.md (this file) | canon — start here |
docs/conventions.md | canon — code style + structure |
.github/instructions/telemetry.instructions.md | canon — PR conventions |
scripts/verify.sh | canon — the verify loop |
README.md | human overview — not agent-canonical |
per-sample README.md files | human usage docs for that one sample |
shell-intune-samples-oss-compliance-report.md | generated audit — local, not checked in |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

