Tools – SIMSENblogThings I learn, tools I build, shared with you. Microsoft Intune, Windows, macOS and endpoint security by Simon Hartmann Eriksen.https://www.simsenblog.dk/en-GBSat, 21 Nov 2026 00:00:00 GMTIntroducing IntuneScope — Every assignment. One view.https://www.simsenblog.dk/2026/11/21/introducing-intunescope/https://www.simsenblog.dk/2026/11/21/introducing-intunescope/A free, open-source web app that shows every Intune assignment in one place, and answers what a group or an assignment filter really drives.Sat, 21 Nov 2026 00:00:00 GMT<p><strong>Explore policies. Find groups. Discover filters.</strong></p> <p><img src="https://www.simsenblog.dk/images/posts/introducing-intunescope/intunescope-app.png" alt="IntuneScope.app: Every assignment. One view. A policy list with type, platform, included and excluded groups and assignment filters, covering configuration, application, script, compliance and Settings Catalog policies on Windows, macOS, iOS and Android"></p> <p>Intune shows assignments one policy at a time. But the question I usually need answered is the reverse:</p> <p><strong>What does this group actually get? And where is this filter used?</strong></p> <p>Answering that in the Intune admin center means opening policy after policy, app after app, script after script.</p> <h2 id="where-the-idea-came-from">Where the idea came from</h2> <p>I was at a customer where we migrated a hybrid setup from Group Policy to Intune.</p> <p>During the migration, we used a specific Entra group to target the new Intune policies.</p> <p>When the migration was done, every policy assigned to that group had to be changed. So we needed an easy overview of exactly which policies used the group, so we could update all of them and not miss a single one.</p> <p>Intune doesn’t give you that view. You can see who a policy is assigned to, but not everything a group is assigned to.</p> <p>The answer was opening every single policy, one by one, and checking its assignments. That’s about a thousand clicks, and it’s far too easy to miss one.</p> <p><strong>So instead of a thousand clicks, I built an app.</strong> 😎</p> <p>Meet <strong>IntuneScope</strong>.</p> <p>A free, open-source web app that loads every policy, app and script in your tenant with its assignments, and answers those questions in seconds, straight from your browser.</p> <p><strong>Every assignment. One view.</strong></p> <p><a href="https://intunescope.app">https://intunescope.app</a></p> <p><a href="https://github.com/Simsen/IntuneScope">https://github.com/Simsen/IntuneScope</a></p> <hr> <h2 id="what-intunescope-does">What IntuneScope does</h2> <ul> <li><strong>Policies:</strong> browse every object with its targets, assignment filters and filter mode, across all platforms.</li> <li><strong>Group lookup:</strong> pick an Entra group and see every policy, app, script and remediation that includes or excludes it, including what it inherits through <strong>parent groups</strong> (nested membership, any depth), marked <em>via <parent></em>.</li> <li><strong>Filter lookup:</strong> pick an assignment filter and see everything that uses it, in include or exclude mode.</li> <li><strong>Export:</strong> Excel (with an <em>About</em> sheet) or CSV, one row per assignment.</li> <li><strong>Bulk edit (Editor):</strong> add, replace or remove assignments, or change filters, across many policies.</li> </ul> <div class="note"><strong>See it live, no sign-in needed</strong>Open <a href="https://intunescope.app/">intunescope.app</a> and click <b>Try the demo — Contoso sample tenant, no sign-in</b>. You get a fictional Contoso tenant with sample policies, apps, groups and filters. Click around the Policies view, Group lookup and Filter lookup, try an export, and even run a bulk edit. Nothing is read from Microsoft, and nothing is changed. <a href="#try-it">See a screenshot ↓</a></div> <h2 id="getting-started">Getting started</h2> <ol> <li>Open <strong><a href="https://intunescope.app/">https://intunescope.app/</a></strong>.</li> <li>Sign in with your Microsoft Entra ID account. The first time, an admin has to approve the app for the tenant (see below).</li> <li>Browse <strong>Policies</strong>, or open <strong>Group lookup</strong> or <strong>Filter lookup</strong>.</li> <li>Export the result to Excel or CSV if you need it in a report.</li> </ol> <p>No install, no PowerShell, no backend.</p> <h2 id="two-modes-two-app-registrations">Two modes, two app registrations</h2> <p>IntuneScope has two modes, and each one has its own app registration:</p> <ul> <li><strong>Explorer</strong> is read-only. It uses delegated <code>Read.All</code> permissions for configuration, apps and scripts, plus <code>Group.ReadBasic.All</code>, <code>GroupMember.Read.All</code> (to find the groups a group is nested in) and <code>User.Read</code>.</li> <li><strong>Editor</strong> adds write permission for <strong>assignments</strong> of Settings Catalog, Endpoint Security, Device configuration and Compliance policies. It never changes policy settings, apps or scripts.</li> </ul> <p>Because they are separate apps, a tenant can approve Explorer without ever granting write access, and can lock Editor down further with <em>assignment required</em> and Conditional Access.</p> <div class="note"><strong>Update, 22 November 2026 (v0.1.9)</strong>Group lookup now includes nested groups, which needs one more read-only permission, <code>GroupMember.Read.All</code>, in both Explorer and Editor. If your tenant already approved IntuneScope, add the permission to your app registrations (self-hosted) or run the admin consent again. Until then, users get a consent prompt at their next sign-in.</div> <p>Both use delegated permissions, so they never exceed the signed-in user’s own rights: <strong>Intune RBAC and scope tags still apply.</strong> If your role can’t see an object, IntuneScope can’t either, and every lookup says which workloads were and weren’t searched.</p> <h2 id="how-editor-changes-assignments-safely">How Editor changes assignments safely</h2> <p>Bulk-editing assignments is exactly where one wrong click hurts, so Editor works in steps:</p> <ol> <li><strong>One platform per batch.</strong> Assignment filters are platform-specific, and Graph doesn’t check the pairing, so IntuneScope does.</li> <li><strong>Preview from a fresh read:</strong> before and after, per policy.</li> <li><strong>A JSON backup downloads first</strong>, with a ready-to-use restore body per policy.</li> <li><strong>Compare-and-skip:</strong> each policy is read again right before writing. If it changed since the preview, it’s skipped.</li> <li><strong>Verify:</strong> IntuneScope reads every policy back after writing and compares, and you can download an execution report.</li> </ol> <div class="note"><strong>Good to know</strong>A run isn't atomic: policies that succeeded stay changed even if others fail. Keep the JSON backup until you've checked the result.</div> <h2 id="privacy-and-security">Privacy and security</h2> <p>IntuneScope is a static web app. Your browser talks directly to Microsoft Graph, signing in with MSAL and PKCE, with no client secret.</p> <p>Data is held in memory only: close or refresh the tab and it’s gone. There’s no analytics, no telemetry, and no server of mine in between.</p> <h2 id="limits-by-design">Limits, by design</h2> <ul> <li><strong>Nested groups go upwards only.</strong> Group lookup adds what a group inherits from its parent groups, but doesn’t expand the groups nested inside it.</li> <li><strong>Not device-level.</strong> IntuneScope shows what targets a group or filter, not what one specific device ends up receiving.</li> <li><strong>Scope tags reduce what Graph returns.</strong> Results are labelled accordingly, so “nothing found” reads as <em>No references found in the workloads you can see</em>.</li> </ul> <h2 id="try-it">Try it</h2> <p>Open <strong><a href="https://intunescope.app/">https://intunescope.app/</a></strong> and sign in, or start the demo to look around in a Contoso sample tenant first.</p> <p><img src="https://www.simsenblog.dk/images/posts/introducing-intunescope/intunescope-app-view.png" alt="IntuneScope Policies &amp; assignments view in the Contoso demo tenant: every policy and app with its platform, type, assignments and filter. All Users and All Devices are green, Entra groups blue, exclusions red, and filters violet"></p> <p>That’s it! No PowerShell scripts, no exports to piece together, and no thousand clicks.</p> <p>IntuneScope is free and open source under the MIT license. You can also host it yourself; the README on GitHub explains how.</p> <p>If you find a bug or have an idea, open an issue on <a href="https://github.com/Simsen/IntuneScope">GitHub</a>.</p> Simon Hartmann EriksenIntuneToolsIntuneAssignmentsToolsIntroducing MSIinfo — MSI properties for Win32 detection rules, in a second.https://www.simsenblog.dk/2026/07/20/web-tool-msiinfo-com/https://www.simsenblog.dk/?p=2368A free, open-source web tool that reads MSI properties, product codes, versions and install commands directly in your browser. Built for application packaging and Intune deployments.Mon, 20 Jul 2026 06:00:00 GMT<p><img src="https://www.simsenblog.dk/images/posts/web-tool-msiinfo-com/msiinfo-app.png" alt="MSIinfo.com with an MSI loaded: the ProductCode highlighted at the top, then ProductName, ProductVersion, Manufacturer, UpgradeCode, ProductLanguage and the install scope, each with a Copy button"></p> <p><strong>What is the ProductCode of this MSI?</strong></p> <p>It’s a simple question, and you need the answer every time you package an app for Intune.</p> <h2 id="where-the-idea-came-from">Where the idea came from</h2> <p>When working with Microsoft Intune, one of the first things I often need from an MSI file is surprisingly simple:</p> <ul> <li>What is the ProductCode?</li> <li>Which silent install command should I use?</li> <li>What detection rule should I configure?</li> <li>Which version am I packaging?</li> </ul> <p>Normally this means opening multiple tools such as Orca, PowerShell or other MSI utilities. Or uploading a vendor’s installer to a website you know nothing about.</p> <p>I wanted something much simpler.</p> <p><strong>So instead of another tool to install, I built a website.</strong> 😎</p> <p>Meet <strong>MSIinfo</strong>.</p> <p>A free, open-source web tool: drag and drop an MSI file into your browser, and it instantly shows the information Intune administrators and application packagers need.</p> <p><strong>MSI properties for Win32 detection rules, in a second.</strong></p> <p><a href="https://msiinfo.com">https://msiinfo.com</a></p> <p><a href="https://github.com/Simsen/MSIinfo">https://github.com/Simsen/MSIinfo</a></p> <hr> <h2 id="what-msiinfo-does">What MSIinfo does</h2> <ul> <li><strong>Key properties:</strong> ProductCode, ProductName, ProductVersion, Manufacturer, UpgradeCode and ProductLanguage, each with a Copy button.</li> <li><strong>Install scope:</strong> reads <code>ALLUSERS</code> and <code>MSIINSTALLPERUSER</code> and tells you whether the MSI installs per-machine or per-user, and how to deploy it in Intune.</li> <li><strong>Command lines and Intune detection:</strong> silent install and uninstall commands, the registry detection path, and a PowerShell check, all one click to copy.</li> <li><strong>Full Property table:</strong> filter it, or copy it as JSON or CSV.</li> <li><strong>Summary Information:</strong> package code, minimum installer version, platform, languages and timestamps.</li> <li><strong>Large files:</strong> multi-GB installers work, because MSIinfo reads only the parts of the file it needs.</li> </ul> <div class="note"><strong>See it live, no MSI needed</strong>Open <a href="https://msiinfo.com/">msiinfo.com</a> and click <b>Show example</b>. You get the Adobe Acrobat DC installer with its properties, command lines and detection rule. <a href="#try-it">See a screenshot ↓</a></div> <h2 id="getting-started">Getting started</h2> <ol> <li>Open <strong><a href="https://msiinfo.com/">https://msiinfo.com/</a></strong>.</li> <li>Drag an MSI onto the page, or click to browse.</li> <li>Copy what you need: the ProductCode, the install and uninstall commands, or the detection rule.</li> </ol> <p>No install, no sign-in, no admin rights. It works on a locked-down client too.</p> <h2 id="privacy-and-security">Privacy and security</h2> <p>One thing that was important from the beginning was privacy.</p> <p><strong>Everything is processed locally in your browser.</strong> Your MSI file is never uploaded: no file contents or file names are sent to any server. That matters when the installer belongs to a customer.</p> <p>Page visits are counted with Cloudflare Web Analytics, without cookies and without anything about the files you open.</p> <h2 id="limits-by-design">Limits, by design</h2> <ul> <li><strong>A viewer, not an editor.</strong> MSIinfo reads MSI files; it never changes them.</li> <li><strong>MSI files only.</strong> <code>.mst</code> transforms and most <code>.msp</code> patches have no Property table, so they are rejected with a clear message.</li> <li><strong>Exotic codepages</strong> fall back to Windows-1252 if your browser can’t decode them.</li> </ul> <h2 id="try-it">Try it</h2> <p>Whether you’re packaging applications every day or just occasionally need to inspect an MSI, the goal is the same: spend less time finding metadata and more time deploying applications.</p> <p>The project is <strong>open source</strong>, so feedback, issues and pull requests are always welcome.</p> <p><img src="https://www.simsenblog.dk/images/posts/web-tool-msiinfo-com/msiinfo-app-view.png" alt="MSIinfo.com showing the Adobe Acrobat DC example: key properties, the install scope, silent install and uninstall commands, the Intune detection path, a PowerShell check, and the full Property table with Copy JSON and Copy CSV"></p> Simon Hartmann EriksenIntuneWindowsToolsIntuneApplication packagingCleanup Remediations: The Forgotten Half of Endpoint Hygienehttps://www.simsenblog.dk/2026/05/05/cleanup-remediations-the-forgotten-half-of-endpoint-hygiene/https://www.simsenblog.dk/?p=2290A closer look at cleanup remediations and the often-overlooked housekeeping side of endpoint management.Tue, 05 May 2026 04:00:00 GMT<p>We spend months hardening endpoints – baselines, compliance, Conditional Access.<br> Then we leave years of sensitive data sitting in Downloads.</p> <p>Cleanup has no owner in most environments. It runs on neither a schedule nor a strategy. The result is predictable: disks fill up, profiles bloat, and endpoints quietly accumulate data no one is accountable for.</p> <p>I’ve written about <a href="https://www.simsenblog.dk/2020/12/21/proactive-remediation/">Proactive Remediations since 2020</a> and about <a href="https://www.simsenblog.dk/2022/03/13/proactive-remediations-security-remediations/">security-focused remediations for Defender</a>. This post is the missing piece – the cleanup layer.</p> <h2 id="why-bother--storage-sense-is-not-enough">Why bother – Storage Sense is not enough</h2> <p>The default reaction is simple: enable Storage Sense and move on.<br> Storage Sense is a good baseline. It is not an endpoint hygiene strategy.</p> <p>What it covers:</p> <ul> <li>Temp files</li> <li>Recycle Bin retention</li> <li>Downloads retention</li> <li>OneDrive dehydration</li> </ul> <p>What it does <strong>not</strong> cover:</p> <ul> <li>Outlook OST files (often 5–20 GB per user)</li> <li>Teams cache (multiple GB, inconsistent cleanup)</li> <li>Orphaned user profiles</li> <li>Windows Update leftovers after feature upgrades (5–10 GB is common)</li> <li>WinSxS growth</li> <li>Browser and font cache issues</li> </ul> <p>It also gives you <strong>no central visibility</strong>.<br> You cannot answer:<br> <strong>“Did cleanup actually run across all devices this week?”</strong></p> <p>And that is exactly the kind of question Legal or Security will ask when it matters.</p> <h2 id="a-quick-note-on-storage-sense-for-downloads">A quick note on Storage Sense for Downloads</h2> <p>Intune does provide a native way to clean up the Downloads folder using <strong>Storage Sense</strong>.</p> <p>You can configure a policy like:</p> <p><img src="https://www.simsenblog.dk/images/posts/cleanup-remediations-the-forgotten-half-of-endpoint-hygiene/cleanup_download_recyclebin.png" alt="Intune Storage Sense settings with Downloads cleanup threshold 60 days and Recycle Bin cleanup threshold 30 days"></p> <p>This is a solid baseline and easy to roll out across all devices.</p> <p><strong>But it is not a governance control.</strong></p> <ul> <li>It runs on a best-effort basis</li> <li>It depends on user activity (file “last opened”)</li> <li>It provides no central reporting</li> <li>You cannot prove it executed</li> </ul> <p>That means you still cannot answer:<br> <strong>“Did sensitive data actually get removed from all endpoints?”</strong></p> <p>Storage Sense is hygiene.<br> Cleanup remediations are control.</p> <p>Use both – but don’t confuse them.</p> <p>Cleanup remediations close the remaining gap:</p> <ul> <li>Detection script → reports state</li> <li>Remediation script → fixes it</li> <li>Endpoint Analytics → gives you tenant-wide visibility</li> </ul> <p>That feedback loop is what Storage Sense is missing.</p> <hr> <h2 id="three-categories-three-different-policies">Three categories, three different policies</h2> <p>This is where most implementations go wrong.<br> Cleanup is not one thing – it’s three different problem domains with different owners and risk profiles.</p> <h2 id="1-temp-and-cache">1. Temp and cache</h2> <p><strong>Automated. Weekly. No discussion needed.</strong></p> <p>Pure hygiene. No user data. No governance friction.</p> <p>Use:</p> <ul> <li><strong>Clear-TempFiles-Advanced</strong>: system + user temp paths, prefetch, update leftovers</li> <li><strong>Clear-OutlookCache</strong>: major disk savings (plan for re-sync impact)</li> <li><strong>Clear-TeamsCache</strong>: verify classic vs new Teams paths before deploying</li> <li><strong>Clear-WindowsUpdateCache</strong>: especially after feature updates</li> <li><strong>Profile cleanup</strong>: only for shared/multi-user devices (test detection carefully)</li> </ul> <hr> <h2 id="a-solid-starting-point-is">A solid starting point is</h2> <p><a href="https://github.com/JayRHa/EndpointAnalyticsRemediationScripts">https://github.com/JayRHa/EndpointAnalyticsRemediationScripts</a></p> <hr> <p>It aligns well with Endpoint Analytics and saves you from rebuilding everything from scratch.</p> <h2 id="2-optimization">2. Optimization</h2> <p><strong>Target: measurable user experience improvements</strong></p> <p>This is what reduces tickets:</p> <ul> <li>slow devices</li> <li>full disks</li> <li>poor startup performance</li> </ul> <p>Use:</p> <ul> <li><strong>Get-CleanUpDisk</strong>: reportable Disk Cleanup wrapper</li> <li><strong>Optimize-StartupPrograms</strong>: directly impacts Endpoint Analytics scores</li> <li><strong>Remove-BloatwareAdvanced / Remove-ConsumerApps</strong>: especially for Autopilot devices</li> <li><strong>Monitor-DiskSpace-Trend</strong>: proves whether cleanup actually worked</li> </ul> <p><strong>Decision:</strong><br> Keep optimization separate from hygiene.<br> Different cadence. Different success criteria. Different rollback needs.</p> <h3 id="3-privacy-and-gdpr">3. Privacy and GDPR</h3> <p><strong>This is not disk cleanup</strong> – <strong>this is data governance</strong></p> <p>Recycle Bin and Downloads are not technical artifacts. They are <strong>data retention risks</strong>.</p> <p>Examples:</p> <ul> <li>Deleted files remain in Recycle Bin for 30 days</li> <li>Downloads contains years of: <ul> <li>contracts</li> <li>exports</li> <li>attachments</li> </ul> </li> </ul> <p>Relevant scripts:</p> <ul> <li><strong>Invoke-ClearRecycleBin</strong>: low risk, quick win</li> <li><strong>Clear-DownloadFolder</strong>: high impact, high risk</li> <li><strong>Clear-BrowserCache</strong>: verify if history is included</li> <li><strong>Detect-Browser-Passwords</strong>: detection + policy enforcement pairing</li> </ul> <p>Automating deletion of <code>C:\Users\&lt;user&gt;\Downloads</code> is <strong>destructive</strong>.</p> <h2 id="the-architects-caveats">The architect’s caveats</h2> <p>Before deploying anything, settle these:</p> <p><strong>Use filters. Not groups.</strong><br> All Devices + filters scales. Manual group scoping does not.</p> <p><strong>Ring the rollout.</strong><br> Pilot → broad.<br> Cleanup can delete user-visible data. Mistakes scale fast.</p> <p><strong>Measure everything.</strong><br> If you cannot show improvement (e.g. disk space trends), the initiative will not survive governance.</p> <h2 id="cleanup-is-part-of-zero-trust">Cleanup is part of Zero Trust</h2> <p>Zero Trust is not just about access.<br> It is also about <strong>data minimization</strong>.</p> <p>Every unmanaged file on an endpoint is:</p> <ul> <li>potential exposure</li> <li>potential compliance issue</li> <li>potential incident scope</li> </ul> <p>Cleanup remediations reduce that footprint.</p> <h2 id="where-to-start-tomorrow">Where to start tomorrow</h2> <p>If you are not running cleanup today, start here:</p> <ol> <li><strong>Clear-TempFiles-Advanced</strong> <ul> <li>Daily</li> <li>All devices</li> <li>Low risk</li> </ul> </li> <li><strong>Invoke-ClearRecycleBin</strong> <ul> <li>Weekly</li> <li>All devices</li> <li>Low risk</li> </ul> </li> <li><strong>Monitor-DiskSpace-Trend</strong> <ul> <li>Detection only</li> <li>Gives you visibility</li> </ul> </li> </ol> <p>Roll out to a pilot ring.<br> Collect data for 2 weeks.<br> Then expand.</p> <p>Next steps:</p> <ul> <li>Outlook / Teams cache</li> <li>Optimization layer</li> <li>GDPR cleanup (with governance in place)</li> </ul> <hr> <h2 id="final-thought">Final thought</h2> <p>The Scripts and remediations engine has been available for years.<br> Most environments still leave it unused.</p> <p><strong>Shortout to Jannik Reinhard, Florian Slazmann, Andrew Taylor, Joey Verlinden and Sven Wick for the scripts!</strong></p> <p>That is probably the easiest endpoint hygiene win you can implement right now.</p> Simon Hartmann EriksenIntuneWindowsIntuneEndpoint hygienePPPC Builder web app for macOS appshttps://www.simsenblog.dk/2026/02/22/pppc-builder-simplifying-macos-privacy-policies-for-intune/https://www.simsenblog.dk/?p=2241Meet a browser-based tool for creating macOS privacy permission profiles for Intune.Sun, 22 Feb 2026 05:54:13 GMT<p>Managing macOS privacy permissions in enterprise environments can quickly become complex. Permissions such as Screen Recording, Full Disk Access, Accessibility, Camera, and Microphone require properly configured PPPC profiles — and creating those manually can be time-consuming and error-prone.</p> <p>That’s why I built <strong>PPPC Builder</strong>: a lightweight web tool that generates ready-to-deploy .mobileconfig files for Microsoft Intune.</p> <p>Guide:</p> <p><strong>1 –</strong></p> <ol> <li>Locate the application in Finder (typically in /Applications)</li> <li>Right-click the app</li> <li>Select <strong>Show Package Contents</strong></li> <li>Open the Contents folder</li> <li>Locate the file Info.plist</li> <li>Upload the Info.plist file into PPPC Builder</li> </ol> <p><strong>2 –</strong></p> <p>Select the permissions your application needs, for example:</p> <ul> <li>Screen Recording (Standard user can toggle)</li> <li>Full Disk Access</li> <li>Accessibility</li> <li>Camera</li> <li>Microphone</li> </ul> <p><strong>3 –</strong></p> <p>Download the generated .mobileconfig file.</p> <p><strong>4 –</strong></p> <ol> <li>Go to <strong>Intune Admin Center</strong></li> <li>Navigate to Devices → macOS → Configuration profiles</li> <li>Create profile → Templates → <strong>Custom</strong></li> <li>Upload the generated .mobileconfig</li> <li>Assign to your target group</li> </ol> <p>Done.</p> <p><a href="https://macpppc.com"><strong>Open MacPPPC ↗</strong></a></p> Simon Hartmann EriksenIntunemacOSToolsmacOSToolsLocal macOS Compliance Checkerhttps://www.simsenblog.dk/2025/03/17/local-macos-compliance-checker/https://www.simsenblog.dk/?p=1999How do you verify macOS security settings on a Mac that isn't managed yet? A local tool that checks the security settings directly on the Mac.Mon, 17 Mar 2025 06:00:00 GMT<h2 id="why-compliance-matters-for-macos-admins">Why Compliance Matters for macOS Admins</h2> <p>With macOS, Apple continues to enhance security and streamline device management. However, these changes introduce new challenges for IT teams, particularly in verifying security configurations and compliance policies.</p> <p>Many IT admins rely on Intune or other MDMs to enforce compliance policies, but what happens when you need to manually verify settings on an unmanaged Mac? That’s where the macOS Compliance Checker comes in!</p> <p>This lightweight shell script allows IT teams to quickly verify key security configurations—without diving deep into system logs or manually navigating System Settings.</p> <hr> <h2 id="what-does-the-compliance-checker-verify">What Does the Compliance Checker Verify?</h2> <p>The script performs local security checks and provides a simple report on essential macOS security settings:</p> <p>✅ System Integrity Protection (SIP) – Confirms if SIP is enabled for OS security.<br> ✅ FileVault – Ensures that disk encryption is active.<br> ✅ Firewall Status – Checks if the macOS firewall is enabled.<br> ✅ Stealth Mode – Verifies if macOS is dropping unsolicited network probes.<br> ✅ Gatekeeper – Confirms app security settings for safe software execution.<br> ✅ Platform SSO – Detects if macOS is integrated with a federated identity provider (e.g., Entra ID).</p> <h2 id="why-this-is-useful">Why This is Useful</h2> <ul> <li><strong>Instant Compliance Checks</strong> – No need to rely on MDM dashboards; this runs locally.</li> <li><strong>Quick Troubleshooting</strong> – Identify misconfigurations in seconds.</li> <li><strong>Works on Unmanaged Macs</strong> – Perfect for BYOD or standalone macOS systems.</li> </ul> <hr> <h2 id="how-it-works">How It Works</h2> <p>The script runs directly on a macOS device and provides an easy-to-read GUI-based report using AppleScript dialogs.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-macos-compliance-checker/ComplianceChecker-1009x1024.png" alt="Compliance Checker dialog on macOS showing SIP, FileVault, Firewall, Gatekeeper and Platform SSO all enabled"></p> <h2 id="the-script--save-it-as-checkcompliancesh">The script – save it as: CheckCompliance.sh</h2> <pre class="astro-code github-dark-dimmed" style="background-color:#22272e;color:#adbac7; overflow-x: auto;" tabindex="0" data-language="bash"><code><span class="line"><span style="color:#8B98A5">#!/bin/bash</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Get macOS Version and Name**</span></span> <span class="line"><span style="color:#ADBAC7">macos_full_version</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">system_profiler</span><span style="color:#96D0FF"> SPSoftwareDataType</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> awk</span><span style="color:#6CB6FF"> -F</span><span style="color:#96D0FF">": "</span><span style="color:#96D0FF"> '/System Version/{print $2}'</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#ADBAC7">macos_name</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#6CB6FF">echo</span><span style="color:#96D0FF"> "</span><span style="color:#ADBAC7">$macos_full_version</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> awk</span><span style="color:#96D0FF"> '{print $2}'</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#ADBAC7">macos_version</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">sw_vers</span><span style="color:#6CB6FF"> -productVersion</span><span style="color:#ADBAC7">)</span></span> <span class="line"></span> <span class="line"><span style="color:#ADBAC7">macos_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"🖥 macOS: </span><span style="color:#ADBAC7">$macos_name</span><span style="color:#96D0FF">\n"</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Check System Integrity Protection (SIP)**</span></span> <span class="line"><span style="color:#ADBAC7">sip_status</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">csrutil</span><span style="color:#96D0FF"> status</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> grep</span><span style="color:#6CB6FF"> -o</span><span style="color:#96D0FF"> "enabled"</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#ADBAC7"> [[ </span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$sip_status</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> ==</span><span style="color:#96D0FF"> "enabled"</span><span style="color:#ADBAC7"> ]]; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> sip_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"✅ System Integrity Protection: Enabled\n"</span></span> <span class="line"><span style="color:#F47067">else</span></span> <span class="line"><span style="color:#ADBAC7"> sip_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"❌ System Integrity Protection: Disabled\n"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Check FileVault (Disk Encryption)**</span></span> <span class="line"><span style="color:#ADBAC7">filevault_status</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">fdesetup</span><span style="color:#96D0FF"> status</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> grep</span><span style="color:#6CB6FF"> -o</span><span style="color:#96D0FF"> "On"</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#ADBAC7"> [[ </span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$filevault_status</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> ==</span><span style="color:#96D0FF"> "On"</span><span style="color:#ADBAC7"> ]]; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> filevault_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"✅ FileVault: Enabled\n"</span></span> <span class="line"><span style="color:#F47067">else</span></span> <span class="line"><span style="color:#ADBAC7"> filevault_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"❌ FileVault: Disabled\n"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Check Firewall Status**</span></span> <span class="line"><span style="color:#ADBAC7">firewall_status</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">/usr/libexec/ApplicationFirewall/socketfilterfw</span><span style="color:#6CB6FF"> --getglobalstate</span><span style="color:#F47067"> 2&gt;</span><span style="color:#96D0FF">/dev/null</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#ADBAC7"> [[ </span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$firewall_status</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> ==</span><span style="color:#F47067"> *</span><span style="color:#96D0FF">"enabled"</span><span style="color:#F47067">*</span><span style="color:#ADBAC7"> ]]; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> firewall_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"✅ Firewall: Enabled\n"</span></span> <span class="line"><span style="color:#F47067">else</span></span> <span class="line"><span style="color:#ADBAC7"> firewall_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"❌ Firewall: Disabled\n"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Check Stealth Mode (Silent Drop Mode)**</span></span> <span class="line"><span style="color:#ADBAC7">stealth_status</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">system_profiler</span><span style="color:#96D0FF"> SPFirewallDataType</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> grep</span><span style="color:#96D0FF"> "Stealth Mode"</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> awk</span><span style="color:#96D0FF"> '{print $NF}'</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#ADBAC7"> [[ </span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$stealth_status</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> ==</span><span style="color:#96D0FF"> "Yes"</span><span style="color:#ADBAC7"> ]]; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> stealth_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"✅ Stealth Mode: Enabled\n"</span></span> <span class="line"><span style="color:#F47067">else</span></span> <span class="line"><span style="color:#ADBAC7"> stealth_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"⚠️ Stealth Mode: Not Configured\n"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Check Gatekeeper Policy**</span></span> <span class="line"><span style="color:#ADBAC7">gatekeeper_status</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">spctl</span><span style="color:#6CB6FF"> --status</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> grep</span><span style="color:#6CB6FF"> -o</span><span style="color:#96D0FF"> "assessments enabled"</span><span style="color:#ADBAC7">)</span></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#ADBAC7"> [[ </span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$gatekeeper_status</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> ==</span><span style="color:#96D0FF"> "assessments enabled"</span><span style="color:#ADBAC7"> ]]; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> gatekeeper_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"✅ Gatekeeper: Enabled (App Store &amp; Identified Developers)\n"</span></span> <span class="line"><span style="color:#F47067">else</span></span> <span class="line"><span style="color:#ADBAC7"> gatekeeper_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"❌ Gatekeeper: Disabled\n"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Check Platform SSO Configuration**</span></span> <span class="line"><span style="color:#ADBAC7">platform_sso_active</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"No"</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># Check if Platform SSO is enabled (PlatformSSOUniqueIdentifier exists)</span></span> <span class="line"><span style="color:#ADBAC7">dscl_output</span><span style="color:#F47067">=</span><span style="color:#ADBAC7">$(</span><span style="color:#F69D50">dscl</span><span style="color:#96D0FF"> .</span><span style="color:#6CB6FF"> -read</span><span style="color:#96D0FF"> /Users/</span><span style="color:#ADBAC7">$USER </span><span style="color:#F47067">2&gt;</span><span style="color:#96D0FF">/dev/null</span><span style="color:#ADBAC7">)</span></span> <span class="line"></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#6CB6FF"> echo</span><span style="color:#96D0FF"> "</span><span style="color:#ADBAC7">$dscl_output</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> |</span><span style="color:#F69D50"> grep</span><span style="color:#6CB6FF"> -q</span><span style="color:#96D0FF"> "dsAttrTypeNative:PlatformSSOUniqueIdentifier"</span><span style="color:#ADBAC7">; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> platform_sso_active</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"Yes"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Determine SSO Result Output**</span></span> <span class="line"><span style="color:#F47067">if</span><span style="color:#ADBAC7"> [[ </span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$platform_sso_active</span><span style="color:#96D0FF">"</span><span style="color:#F47067"> ==</span><span style="color:#96D0FF"> "Yes"</span><span style="color:#ADBAC7"> ]]; </span><span style="color:#F47067">then</span></span> <span class="line"><span style="color:#ADBAC7"> sso_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"✅ Platform SSO: Configured\n"</span></span> <span class="line"><span style="color:#F47067">else</span></span> <span class="line"><span style="color:#ADBAC7"> sso_result</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"⚠️ Platform SSO: Not Configured\n"</span></span> <span class="line"><span style="color:#F47067">fi</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># **Combine results and display GUI output**</span></span> <span class="line"><span style="color:#ADBAC7">compliance_report</span><span style="color:#F47067">=</span><span style="color:#96D0FF">"</span><span style="color:#ADBAC7">$macos_result</span><span style="color:#96D0FF">\n</span></span> <span class="line"><span style="color:#ADBAC7">$sip_result</span><span style="color:#96D0FF">\n</span></span> <span class="line"><span style="color:#ADBAC7">$filevault_result</span><span style="color:#96D0FF">\n</span></span> <span class="line"><span style="color:#ADBAC7">$firewall_result</span><span style="color:#96D0FF">\n</span></span> <span class="line"><span style="color:#ADBAC7">$stealth_result</span><span style="color:#96D0FF">\n</span></span> <span class="line"><span style="color:#ADBAC7">$gatekeeper_result</span><span style="color:#96D0FF">\n</span></span> <span class="line"><span style="color:#ADBAC7">$sso_result</span><span style="color:#96D0FF">"</span></span> <span class="line"></span> <span class="line"><span style="color:#F69D50">osascript</span><span style="color:#6CB6FF"> -e</span><span style="color:#96D0FF"> "display dialog </span><span style="color:#F47067">\"</span><span style="color:#ADBAC7">$compliance_report</span><span style="color:#F47067">\"</span><span style="color:#96D0FF"> buttons {</span><span style="color:#F47067">\"</span><span style="color:#96D0FF">OK</span><span style="color:#F47067">\"</span><span style="color:#96D0FF">} default button </span><span style="color:#F47067">\"</span><span style="color:#96D0FF">OK</span><span style="color:#F47067">\"</span><span style="color:#96D0FF"> with title </span><span style="color:#F47067">\"</span><span style="color:#96D0FF">Compliance Checker by simsenblog.dk</span><span style="color:#F47067">\"</span><span style="color:#96D0FF">"</span></span></code></pre> <p><strong>Disclaimer</strong>: If the Mac is not managed (i.e., no MDM, no enterprise SSO), checking for Platform SSO may not be relevant. Most unmanaged Macs won’t have Platform SSO configured, so this check is mainly useful for corporate-managed Macs.</p> <p>However, if your organization supports local device enrollment into Federated Authentication (e.g., Microsoft Entra ID, Okta, or other IdPs), this check can still be useful to verify integration.</p> Simon Hartmann EriksenIntunemacOSToolsComplianceInstall 3.part software on macOShttps://www.simsenblog.dk/2025/03/11/easy-way-to-install-3-part-software-on-macos/https://www.simsenblog.dk/?p=1971Installomator installs and updates nearly 1,000 macOS apps automatically. How to deploy it with Intune, plus a simple script to install applications on your Macs.Tue, 11 Mar 2025 22:00:00 GMT<h2 id="introduction">Introduction</h2> <p>When managing macOS devices with <strong>Microsoft Intune</strong>, deploying and updating applications efficiently is a key challenge. <strong>Installomator</strong> simplifies this process by offering an automated way to install and update nearly 1000 macOS applications. In this post, I’ll introduce <strong>Installomator</strong>, show you how to deploy it via Intune, and demonstrate a simple script to install applications.</p> <h2 id="what-is-installomator">What is Installomator?</h2> <p><strong>Installomator</strong> is an open-source script that allows IT administrators to install and update a vast array of macOS applications. Instead of manually packaging and deploying apps, Installomator fetches the latest versions directly from vendor sources.</p> <p>Link: <a href="https://github.com/Installomator/Installomator">https://github.com/Installomator/Installomator</a></p> <h3 id="why-installomator-is-interesting">Why Installomator is interesting</h3> <ul> <li><strong>Automated App Deployment</strong>: Deploy and update applications with minimal effort.</li> <li><strong>Supports Nearly 1000 Apps</strong>: Includes popular productivity and development tools.</li> <li><strong>Works Seamlessly with Intune</strong>: Can be used in shell scripts for automated management.</li> <li><strong>Ensures Latest Versions</strong>: Fetches the latest versions directly from vendors.</li> </ul> <hr> <h3 id="get-started">Get started…</h3> <h4 id="1-copy-script-for-adobe-reader-dc--and-save-to-installadobereaderdcsh">1. Copy script for Adobe Reader DC – and save to InstallAdobeReaderDC.sh</h4> <h5 id="simply-just-change-application-name-on-line-8-with-another-from-the-list">Simply just change application name on Line 8 with another from the list.</h5> <p>Link to the list can be found in the buttom.</p> <pre class="astro-code github-dark-dimmed" style="background-color:#22272e;color:#adbac7; overflow-x: auto;" tabindex="0" data-language="bash"><code><span class="line"><span style="color:#8B98A5">#!/bin/bash</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># Download Installomator</span></span> <span class="line"><span style="color:#F69D50">curl</span><span style="color:#6CB6FF"> -fsSL</span><span style="color:#96D0FF"> https://raw.githubusercontent.com/Installomator/Installomator/main/Installomator.sh</span><span style="color:#6CB6FF"> -o</span><span style="color:#96D0FF"> /usr/local/bin/Installomator</span></span> <span class="line"><span style="color:#F69D50">chmod</span><span style="color:#96D0FF"> +x</span><span style="color:#96D0FF"> /usr/local/bin/Installomator</span></span> <span class="line"></span> <span class="line"><span style="color:#8B98A5"># Run Installomator with explicit install parameters</span></span> <span class="line"><span style="color:#F69D50">sudo</span><span style="color:#96D0FF"> /usr/local/bin/Installomator</span><span style="color:#96D0FF"> adobereaderdc</span><span style="color:#96D0FF"> DEBUG=</span><span style="color:#6CB6FF">0</span></span></code></pre> <h4 id="2-go-to-intune--devices--scripts-and-remediations--platform-scripts">2. Go to Intune &gt; Devices &gt; Scripts and remediations &gt; Platform scripts</h4> <h4 id="3-click-add--macos">3. Click Add &gt; macOS</h4> <p><img src="https://www.simsenblog.dk/images/posts/easy-way-to-install-3-part-software-on-macos/Screenshot-2025-03-11-at-22.45.44.png" alt="Intune Scripts and remediations, Platform scripts tab with Add expanded and macOS selected"></p> <h4 id="4-insert-name-and-click-next">4. Insert Name and Click Next</h4> <p><img src="https://www.simsenblog.dk/images/posts/easy-way-to-install-3-part-software-on-macos/Screenshot-2025-03-11-at-22.46.38.png" alt="Intune Add script wizard for macOS with the name MAC_Install_AdobeReaderDC entered on the Basics tab"></p> <h4 id="5-insert-script-and-select-following-options--click-next">5. Insert Script and select following options – Click Next</h4> <p><img src="https://www.simsenblog.dk/images/posts/easy-way-to-install-3-part-software-on-macos/Screenshot-2025-03-11-at-22.59.25.png" alt="Intune macOS script settings with an Installomator script for Adobe Reader DC, run as root and retry set to 3 times"></p> <h4 id="6-assign-to-user-or-device-group--click-next-and-add">6. Assign to User or Device group – Click Next and Add</h4> <p>List of all 998 Apps that can be used in the scripts: <a href="https://github.com/Installomator/Installomator/blob/main/Labels.txt">https://github.com/Installomator/Installomator/blob/main/Labels.txt</a></p> <h3 id="will-in-next-blogpost-look-into-swiftdialog-and-how-to-upgrade-existing-installations">Will in next blogpost look into SwiftDialog and how to upgrade existing installations.</h3> <h4 id="shortout-to-the-installomator-team">Shortout to The Installomator team</h4> Simon Hartmann EriksenIntunemacOSToolsInstallomatorApp deploymentSetup virtual MacOS Sonoma to Intunehttps://www.simsenblog.dk/2023/07/03/virtual-macos-sonoma-to-intune/https://www.simsenblog.dk/?p=1048Set up macOS Sonoma (beta) as a virtual machine in Parallels and enrol it in Intune. Great for testing, with one catch: VMs can't be enrolled through Apple Business Manager.Mon, 03 Jul 2023 08:00:06 GMT<h2 id="introduction">Introduction</h2> <p>In this blog post, I will setting up the new MacOS Sonoma(Beta) as a virtual machine via Parallels and onboard it to Intune.<br> Microsoft made it possible to onboard virtual MacOS to Intune. So we will go through how easy it is to enroll virtual MacOS Sonoma to Intune – when using Parallels.</p> <p>Unfortunately is it not possible to onboard the VM from Apple Business Manager to Intune. Only manual onboarding via Company Portal is supported.</p> <h2 id="prerequisities">Prerequisities</h2> <ul> <li> <p>MacOS 13.3.1 or higher</p> </li> <li> <p>Latest version installed of:</p> <ul> <li>Parallels Desktop for Mac Standard Edition</li> <li>Parallels Desktop for Mac Pro Edition</li> <li>Parallels Desktop for Mac Business Edition</li> <li>Parallels Desktop for Mac App Store Edition</li> </ul> </li> <li> <p>Login to: <a href="https://developer.apple.com">developer.apple.com</a> – Go to Distribute in top menu &gt; MacOS &gt; Download</p> <ul> <li> <p>Download macOS Sonoma 14 beta 2 image</p> </li> <li> <p>Download Device Support for MacOS 14 beta 2</p> </li> <li> <p><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/download_ipsw.png" alt="Apple Developer downloads page highlighting the macOS 14 beta 2 restore image and Device Support for macOS 14 beta 2"></p> </li> <li> <p>Install <strong>Device Support for MacOS 14 beta 2</strong> on the MacOS host(physical)</p> </li> </ul> </li> </ul> <hr> <h2 id="create-macos-14-sonoma-vm">Create MacOS 14 Sonoma VM</h2> <ul> <li>Go to Finder – browse to these 3 locations <ul> <li>Path to the application in Parallels Desktop to create the VM<img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/MacOS_Sonoma_path1.png" alt="Finder path to prl_macvm_create inside Parallels Desktop.app/Contents/MacOS"></li> <li>Path to the ipsw file – you just downloaded</li> <li><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/MacOS_Sonoma_path2.png" alt="Finder path to the downloaded UniversalMac_14.0_23A5276g_Restore.ipsw file in Downloads"></li> <li>Empty folder – to store the VM</li> <li><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/MacOS_Sonoma_path3.png" alt="Finder path to the empty Parallels/MacOS 14 Sonoma folder that will store the VM"></li> </ul> </li> <li>Start Terminal – then it should look like this:</li> </ul> <p><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/MicrosoftTeams-image-28-1024x725.png" alt="Terminal running prl_macvm_create with the Sonoma ipsw and target macvm path, showing installation progress"></p> <p>When the “installation” is done – click on the macvm file, then it will show up in Control Center</p> <p><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/MacOS_SonomaVM-1-1024x306.png" alt="Parallels Desktop Control Center listing the new macOS virtual machine, powered off"></p> <p>When turn on – it is now ready to continue the setup</p> <div class="post-gallery" role="group" aria-roledescription="gallery" aria-label="Set up the macOS Sonoma VM"> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.32.38.png" alt="MacOS Sonoma - Step 1" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 1</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.10.png" alt="MacOS Sonoma - Step 2" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 2</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.23.png" alt="MacOS Sonoma - Step 3" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 3</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.29.png" alt="MacOS Sonoma - Step 4" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 4</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.35.png" alt="MacOS Sonoma - Step 5" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 5</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.39.png" alt="MacOS Sonoma - Step 6" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 6</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.45.png" alt="MacOS Sonoma - Step 7" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 7</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.50.png" alt="MacOS Sonoma - Step 8" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 8</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.44.55.png" alt="MacOS Sonoma - Step 9" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 9</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.45.00.png" alt="MacOS Sonoma - Step 10" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 10</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.45.05.png" alt="MacOS Sonoma - Step 11" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 11</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.46.13.png" alt="MacOS Sonoma - Step 12" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 12</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.46.41.png" alt="MacOS Sonoma - Step 13" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 13</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.46.45.png" alt="MacOS Sonoma - Step 14" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 14</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.46.54.png" alt="MacOS Sonoma - Step 15" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 15</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.47.02.png" alt="MacOS Sonoma - Step 16" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 16</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.47.09.png" alt="MacOS Sonoma - Step 17" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 17</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-06.47.48.png" alt="MacOS Sonoma - Step 18" width="1600" height="1102" loading="lazy" /><figcaption>MacOS Sonoma - Step 18</figcaption></figure> </div> <hr> <h2 id="enroll-macos-sonoma-to-microsoft-intune">Enroll MacOS Sonoma to Microsoft Intune</h2> <p>Open safari – and go to this site: <a href="https://learn.microsoft.com/en-us/mem/intune/user-help/enroll-your-device-in-intune-macos-cp#install-company-portal-app">Enroll your Mac with Intune Company Portal | Microsoft Learn</a></p> <p><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/Screenshot-2023-06-30-at-08.15.05.png" alt="Safari prompt to allow downloads from learn.microsoft.com while downloading Company Portal for Mac"> <em>Download Company portal for Mac – and install</em></p> <div class="post-gallery" role="group" aria-roledescription="gallery" aria-label="Enrol macOS Sonoma in Intune"> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.15.32.png" alt="Step 01 - Click Continue" width="636" height="462" loading="lazy" /><figcaption>Step 01 - Click Continue</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.15.50.png" alt="Step 02 - Click Continue" width="630" height="456" loading="lazy" /><figcaption>Step 02 - Click Continue</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.16.03.png" alt="Step 03 - Click Agree" width="636" height="458" loading="lazy" /><figcaption>Step 03 - Click Agree</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.16.13.png" alt="Step 04 - Click Install" width="636" height="460" loading="lazy" /><figcaption>Step 04 - Click Install</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.16.26.png" alt="Step 05 - Type in password for local user – and click Install Software" width="642" height="526" loading="lazy" /><figcaption>Step 05 - Type in password for local user – and click Install Software</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.16.50.png" alt="Step 06 - Click Close" width="636" height="462" loading="lazy" /><figcaption>Step 06 - Click Close</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.16.58.png" alt="Step 07 - Click Move to Bin – installation done." width="640" height="460" loading="lazy" /><figcaption>Step 07 - Click Move to Bin – installation done.</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.17.41.png" alt="Step 08 - Sign in" width="824" height="620" loading="lazy" /><figcaption>Step 08 - Sign in</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.17.53.png" alt="Step 09 - Sign in with your M365 account" width="824" height="622" loading="lazy" /><figcaption>Step 09 - Sign in with your M365 account</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.18.41.png" alt="Step 10 - Click Begin, to enroll device" width="840" height="628" loading="lazy" /><figcaption>Step 10 - Click Begin, to enroll device</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.18.57.png" alt="Step 11 - Click Cotinue" width="826" height="612" loading="lazy" /><figcaption>Step 11 - Click Cotinue</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.19.08.png" alt="Step 12 - Click Download profile" width="828" height="616" loading="lazy" /><figcaption>Step 12 - Click Download profile</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.30.23.png" alt="Step 13 - Click on the profile" width="736" height="498" loading="lazy" /><figcaption>Step 13 - Click on the profile</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.30.34.png" alt="Step 14 - Click Install…" width="732" height="494" loading="lazy" /><figcaption>Step 14 - Click Install…</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-08.30.53.png" alt="Step 15 - Type Pasword – to confirm Intune MDM profile" width="736" height="492" loading="lazy" /><figcaption>Step 15 - Type Pasword – to confirm Intune MDM profile</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-09.06.59.png" alt="Step 16 - Compliance policy will now be checked" width="832" height="620" loading="lazy" /><figcaption>Step 16 - Compliance policy will now be checked</figcaption></figure> <figure><img src="https://www.simsenblog.dk/images/posts/virtual-macos-sonoma-to-intune/gallery/Screenshot-2023-06-30-at-09.14.03.png" alt="Step 17 - Your virtual MacOS Sonoma is now enrolled to Intune." width="828" height="616" loading="lazy" /><figcaption>Step 17 - Your virtual MacOS Sonoma is now enrolled to Intune.</figcaption></figure> </div> Simon Hartmann EriksenIntunemacOSToolsParallelsEnrolmentLocal Administrator on MacOS?https://www.simsenblog.dk/2023/06/04/local-administrator-on-macos/https://www.simsenblog.dk/?p=832Explore local administrator permissions when onboarding Macs with Intune.Sun, 04 Jun 2023 17:40:00 GMT<p>When onboarding macOS with Apple Business Manager and Intune, there are a few important security considerations to keep in mind. Specifically, it’s crucial to control the level of access each user has on a device, and this includes the potential issue of local users obtaining administrator rights.</p> <p>When a local user has administrator rights, they have the power to change settings, install software, and alter other user accounts. In a business environment, it’s usually not desirable for each user to have this level of control, particularly in a context where data protection, malware prevention, and consistent user experiences are key.</p> <p>I have earlier mentioned Admin by Request from Fasttrack – which is a very powerfull Just-in-time priviledge tool.</p> <p>When you are onboarding macOS with Apple Business Manager and Intune, you can certainly integrate Admin By Request to enhance your security measures. This tool provides several advantages:</p> <ol> <li><strong>Just-In-Time Access:</strong> With Admin By Request, users can be granted temporary admin rights when necessary, but they don’t have full-time admin access. This mitigates the risk of malicious or inadvertent changes being made to system settings.</li> <li><strong>Auditing and Tracking:</strong> Admin By Request provides a detailed audit log of all actions taken by users with administrative privileges. This gives you the ability to review and monitor how administrative rights are being used in your organization, providing an extra layer of accountability.</li> <li><strong>Approvals:</strong> The tool offers the possibility of setting up an approval process. This means that when a user requests admin rights, the request can be reviewed and approved (or denied) by an IT administrator. This can be done either manually for each request or you can set up rules for automatic approval.</li> <li><strong>Security Compliance:</strong> By limiting user privileges and closely monitoring the use of admin rights, Admin By Request can help your organization to comply with security regulations and standards, such as GDPR, ISO 27001, and Cyber Essentials.</li> </ol> <h2 id="1-setup-freeplan-tenant">1. Setup freeplan tenant</h2> <p>You can setup a freeplan tenant with 25 licenses – which is a great idea to actually test the solution. The freeplan dont have any deadline. <a href="https://www.adminbyrequest.com/en/freeplandownload">LINK</a></p> <hr> <h2 id="2-setup-azure-ad-connector">2. Setup Azure AD Connector</h2> <p>A new and very important feature for Admin by Request on MacOS is support for Azure AD groups. We will get back to details on how it looks.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/AbR-AzureADConnector-1024x499.png" alt="Admin By Request Mac Global Settings, Azure AD tab, with Azure AD Connector enabled for the tenant and state Functional"></p> <hr> <h2 id="3-download-admin-by-request-agent">3. Download Admin by Request agent</h2> <p>Go to download – and get the Client for Mac.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/AbR-Download-1024x149.png" alt="Admin By Request portal Download Client for Mac panel offering Admin By Request for Mac 4.0"></p> <p>When click Download – the agent will be created for your tenant. So no special parameters or login after. This package is for <strong>YOUR</strong> tenant.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/AbR-Download2.png" alt="Admin By Request portal building the tenant-specific Mac package, noting it must be co-signed by Apple (up to 15 minutes)"></p> <hr> <h2 id="4-prepare-admin-by-request--mac-global-settings">4. Prepare Admin by Request – Mac Global Settings</h2> <table class="layout-table"><tbody><tr><td>When login to Admin by Request admin portal<br><br>Go to: Settings.<br><br>From settings – you can see:<br><br>Windows Settings – Global Windows settings<br>Windows Sub Settings – Settings assigned to a group<br><br>Mac Settings – Global Mac setting<br>Mac Sub Setting – Settings assigned to a group<br><br>Global settings – is like fallback, if no sub settings is matching</td><td><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr_Menu.png" alt="Admin By Request portal Settings menu listing Windows Settings, Windows Sub Settings, Mac Settings and Mac Sub Settings"><br></td></tr></tbody></table> <h3 id="set-global-mac-settings">Set Global Mac settings</h3> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr_Global_mac_settings-1024x747.png" alt="Mac Global Settings Authorization tab with Allow Run As Admin and Allow Admin Sessions both set to Off"> <em>Set both to off</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr_Global_mac_settings2-1024x468.png" alt="Mac Global Settings Lockdown tab with Revoke admin rights set to Off"> <em>Revoke admin rights – Set to Off<br> When Admin by Request is installed – it will not have any effect.</em></p> <hr> <h2 id="5-prepare-admin-by-request-app-in-intune">5. Prepare Admin by Request app in Intune</h2> <h3 id="install-from-intune-as-a-line-of-business-app">Install from Intune as a Line-of-business app</h3> <p>Go to: <a href="https://intune.microsoft.com">https://intune.microsoft.com</a> &gt; Apps &gt; MacOS &gt; + Add &gt; <strong>Line-of-business app</strong>.<br> I will then assign the app to All devices with a filter or a specific Azure AD group.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/AbR-IntuneApp-569x1024.png" alt="Intune Add App wizard for a macOS line-of-business app, uploading Admin By Request 4.0 pkg with bundle ID com.fasttracksoftware.adminbyrequest"></p> <h3 id="install-from-shell-script">Install from Shell script</h3> <p>If you onboard your Mac from Apple Business Manager – and want to have Admin by Request installed as soon as possible. I recommend use Shell scripts – as this is much faster. <a href="https://github.com/Simsen/MacAppInstall_Intune/blob/main/AdminByRequest">Link to Github</a></p> <hr> <h2 id="6-install-admin-by-request-from-company-portal-and-verify">6. Install Admin by Request from Company Portal and verify</h2> <p>Admin by Request now show up in Company Portal.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/AbR_CompanyPortal-1024x792.png" alt="Company Portal for Mac showing Admin By Request 4.0 available to install"></p> <p>After Installation – Admin by Request will show in tool menu (Upper-right-corner)<br> When the icon is RED – user is still local administrator all the time and Admin by Request policy is not enforced yet.<br> This is because we set our Global Mac settings to NOT revoke Admin rights.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/Skaermbillede-2023-06-04-kl.-10.13.03.png" alt="Red Admin By Request menu bar icon reporting the user is logged in as administrator, so the policy is not yet enforced"></p> <hr> <h2 id="7-create-admin-by-request-policies">7. Create Admin by Request policies</h2> <p>Now we will create a Mac sub setting that target our Mac.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_1-1-1024x305.png" alt="Admin By Request Mac sub settings page with an empty list and the New button highlighted"> <em>Click New</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_2-1-1024x370.png" alt="New Mac sub setting named ‘Office User’ being entered, with Update highlighted"> <em>Insert name – and click Update</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_3-1-1024x292.png" alt="Mac sub settings list showing ‘Office User (Inactive)’ with the Edit link highlighted"> <em>Click Edit on the new sub setting</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_4-1-1024x563.png" alt="Office User sub setting scope with computer group AAD_AdminByRequest_OfficeSettings, Active set to On and Save highlighted"> <em>Set Active to On<br> Insert Azure AD group (Remember to add the mac to this group)<br> Click Save</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_5-1024x566.png" alt="Office User Authorization settings overruling global settings, with Run As Admin, Admin Sessions and Require reason on and 15-minute access time"> <em>Go to: <strong>Authorization</strong><br> Set it to Overrule global settings<br> Activate as showed and click Save</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_6-2-1024x525.png" alt="Office User Endpoint branding overruling global settings, with logo file on and company name set to ‘Office’"> <em>Go to: <strong>Endpoint</strong><br> Set it to Overrule global settings<br> I recommend to set policy name as Company name.(Will show later why)</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_7-1-1024x535.png" alt="Office User Lockdown Admin Rights tab overruling global settings with Revoke admin rights set to On"> <em>Go to: <strong>Lockdown</strong><br> Set it to Overrule global settings<br> Set Revoke admin rights to On</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-subsetting_8-1024x526.png" alt="Office User Lockdown SUDO tab overruling global settings, with Allow sudo terminal commands left Off"> <em>Under <strong>Lockdown</strong> go to the other tab: <strong>SUDO</strong><br> Consider if you want to enable this – user will be able to uninstall Admin by Request agent</em></p> <hr> <h2 id="8-now-check-admin-by-request-agent-on-the-mac">8. Now check Admin by Request agent on the Mac</h2> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-PolicyApplied.png" alt="Admin By Request menu bar icon on the Mac offering Request administrator access once the policy is applied"> <em>Click Request administrator access</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/Screenshot-2023-06-04-at-19.31.19.png" alt="Administrator Access prompt asking to start an administrator session, branded with the sub-setting name ‘Office’"> <em>Click Yes<br> Under the logo – you can also see it is the name of the sub-setting: Office<br> Normally it would be Company name.<br> When you have multiple profiles and need to troubleshoot this is handy.</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/Screenshot-2023-06-04-at-19.31.12.png" alt="Request Administrator Access form with email, phone and reason ‘Install Jabra application’ for the audit log"> <em>Type in justification to the Audit log – why you elevated to Administrator access</em></p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-countdown.png" alt="Admin By Request administrator session window counting down from 15 minutes, with a Finish button"> <em>15min countdown for multiple tasks.</em></p> <hr> <h2 id="9-full-audit">9. Full audit</h2> <p>From the Admin by Request admin portal – we now have full audit of what has been installed.</p> <p><img src="https://www.simsenblog.dk/images/posts/local-administrator-on-macos/abr-fullaudit-1024x441.png" alt="Admin By Request audit log entry showing the user, reason, Office User setting and Jabra software installed during the session"></p> Simon Hartmann EriksenmacOSIntunemacOSSecurity