> ## Documentation Index
> Fetch the complete documentation index at: https://docs.within.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy the Within desktop app with MDM

> Deploy the Within desktop app to Mac and Windows computers with your MDM, with the PKG and MSI installers and the IT deployment kit.

This page is for IT admins who deploy the Within desktop app to company computers.

To understand more about the benefits of the desktop app, [click here](https://docs.within.ai/user-docs/admin/desktop-app).

> [!NOTE]
>
> **Need the detailed IT & Security Infosec Packet?**
>
> Request access on [trust.within.ai](https://trust.within.ai), then open [the Within desktop app infosec guide](https://trust.within.ai/resources?s=yneyo9w2yyqdy2mk0uibl\&name=within-desktop-app-info-sec-guide.pdf).

## Deploy the app from your MDM

Pick your platform, then follow the steps in order.

> [tab] macOS
>
> > [!NOTE]
> >
> > **Before you install.** Within runs on macOS 13 or later on Apple silicon.
>
> **1. Download the kit and the installer**
>
> [IT deployment kit (ZIP)
> Profiles, uninstall script and checksums.](https://downloads.within.ai/desktop/enterprise/latest/Within-IT-deployment-kit.zip)
>
> [macOS installer (PKG)
> Apple silicon.](https://downloads.within.ai/desktop/enterprise/latest/Within-arm64.pkg)
>
> > [accordion] Check the downloads
> >
> > Unzip the kit, move the PKG into the `Within-IT-deployment-kit` folder, then run these commands in that folder:
> >
> > ```bash theme={null}
> > shasum -a 256 --ignore-missing -c SHA256SUMS.txt
> > pkgutil --check-signature Within-*-arm64.pkg
> > ```
> >
> > * Every line of the first command ends in `OK`, including the line for the PKG.
> > * The second command shows `Notarization: trusted by the Apple notary service` and names `Developer ID Installer: Within Intelligence Inc. (T7764DPRQ7)`.
> >
> > If the PKG line is missing or fails, a new version shipped between your two downloads. Download both files again.
>
> **2. Upload the configuration profiles**
>
> Configuration profiles make permissions simpler for each person. A person needs no administrator rights to allow Screen Recording, and macOS shows fewer notices.
>
> Upload each `.mobileconfig` file in the kit's `macOS` folder as its own profile, at the device (computer) level. Deploy the profiles before the PKG.
>
> > [accordion] What each profile does
> >
> > | Profile | What it does | Needs |
> > | - | - | - |
> > | `ai.within.screen-capture.mobileconfig` | Lets a person who is not an administrator allow Screen Recording when macOS asks. | macOS 11 or later |
> > | `ai.within.login-items.mobileconfig` | Turns on Within's login item without the "Background Items Added" notice, and stops anyone switching it off. | macOS 13 or later |
> > | `ai.within.mobileconfig` | Turns Within's own updates off, so a version that is no longer supported tells people to ask IT for the new one. | |
> > | `ai.within.screen-capture-alert.mobileconfig` | Optional. Turns off the monthly macOS reminder about apps that record the screen. | macOS 15.1 or later |
> >
> > The optional profile applies to every app on the Mac, not only Within. Ask your security team before you deploy it.
>
> **3. Add the PKG to your MDM**
>
> Add the PKG to your MDM, and assign it to the same Macs as the profiles. The PKG installs `/Applications/Within.app` for every user and runs no script.
>
> **4. Test on one Mac**
>
> 1. `sudo profiles show -type configuration` lists every profile you uploaded.
> 2. `/Applications/Within.app` is there.
> 3. A person who is not an administrator can open Within, sign in, and allow Screen Recording and the microphone.
>
> **5. Roll out**
>
> Widen the scope to the rest of your Macs. Nothing starts after the install, so tell each person to do three things once:
>
> 1. Open Within.
> 2. Sign in, in their browser.
> 3. Allow Screen Recording and the microphone when macOS asks. No profile can grant these, so each person clicks **Allow** once.

> [tab] Windows
>
> > [!NOTE]
> >
> > **Before you install.** Within runs on 64-bit Windows 10 22H2 or Windows 11.
>
> **1. Download the kit and the installer**
>
> [IT deployment kit (ZIP)
> The Group Policy template and checksums.](https://downloads.within.ai/desktop/enterprise/latest/Within-IT-deployment-kit.zip)
>
> [Windows installer (MSI)
> 64-bit.](https://downloads.within.ai/desktop/enterprise/latest/Within-x64.msi)
>
> > [accordion] Check the downloads
> >
> > Run these commands in PowerShell, in the folder that holds the MSI:
> >
> > ```powershell theme={null}
> > Get-FileHash .\Within-*-x64.msi -Algorithm SHA256
> > Get-AuthenticodeSignature .\Within-*-x64.msi | Format-List Status, SignerCertificate
> > ```
> >
> > * The hash matches the MSI line in the kit's `SHA256SUMS.txt`.
> > * The signature status is `Valid`, and the signer is `Within Intelligence, Inc.`
> >
> > If the hash doesn't match, a new version shipped between your two downloads. Download both files again.
>
> **2. Remove any per-user copy**
>
> If anyone installed Within from the EXE, uninstall that copy first. The per-user copy and the MSI install are not supported on the same computer.
>
> **3. Add the MSI to your MDM**
>
> Add the MSI to your MDM, and install it in the System context. In Intune, add it as a Win32 app.
>
> > [accordion] Win32 app settings
> >
> > | Setting | Value |
> > | - | - |
> > | Install behavior | System |
> > | Install command | `msiexec /i "Within-<version>-x64.msi" /qn` |
> > | Uninstall command | `msiexec /x "Within-<version>-x64.msi" /qn` |
> > | Detection rule | The MSI's product code and version |
> >
> > The MSI installs Within for every user into `C:\Program Files\Within` and runs no custom action. Each version has its own product code.
>
> **4. Set the update policy**
>
> The MSI never updates itself, so this step stops no update. Set `UpdateMode` to `off` for one reason: when a version is no longer supported, the app then tells people to ask IT for the new one.
>
> > [accordion] Policy template or registry
> >
> > Use one of two ways:
> >
> > * **Policy template:** import `Windows/within.admx` and `Windows/en-US/within.adml` from the kit into Group Policy or Intune. Open **Update mode**, choose **Enabled**, then choose **Off**.
> > * **Registry:** set the value directly.
> >
> >   ```powershell theme={null}
> >   reg add "HKLM\SOFTWARE\Policies\Within\Within" /v UpdateMode /t REG_SZ /d off /f
> >   ```
> >
> > Within reads the setting when it starts.
>
> **5. Test on one PC, then roll out**
>
> Check that `C:\Program Files\Within\Within.exe` is there and that a person can open Within and sign in. Then assign the app to the rest of your PCs. Nothing starts after the install, so tell each person to do two things once:
>
> 1. Open Within.
> 2. Sign in, in their browser.
>
> Windows has no permission prompt for screen capture. The microphone follows the Windows setting **Let desktop apps access your microphone**.

> [tab] Virtual desktops
>
> > [!WARNING]
> >
> > **We highly recommend that people run Companion on their own computer, not in the virtual desktop.**
> >
> > To learn why, read [Running Companion on the laptop instead of inside the virtual desktop](https://docs.within.ai/user-docs/troubleshooting/companion-laptop-vs-virtual-desktop.md).
> >
> > To install the desktop app there, follow the **macOS** or **Windows** tab.
>
> If you must run Within in the virtual desktop, check your platform:
>
> | Status | Virtual desktop |
> | - | - |
> | Tested | Amazon WorkSpaces on Windows Server 2025 |
> | Not tested yet | Citrix, VMware Horizon, Azure Virtual Desktop and Windows 365 |
> | Not tested yet | Earlier Windows Server versions |
> | Not tested yet | Multi-session Windows: Azure Virtual Desktop multi-session and Remote Desktop Services |
>
> > [!NOTE]
> >
> > **Before you install.** Tell us your platform and the number of users before your rollout, so that we can test it with you. Email [support@within.ai](mailto:support@within.ai) or ask your Within contact.
>
> To install, follow the steps in the **Windows** tab.
>
> **Non-persistent desktops:** install Within in the image with the MSI.

## Updating the app

The PKG and the MSI don't update themselves. To update, deploy the newest installer over the installed one.

* **Download:** the buttons on this page always give the newest version.
* **Releases:** every version, with its date and SHA-256, is in [releases.json](https://downloads.within.ai/desktop/releases.json). We tell your IT contact when a security fix ships.
* **macOS:** the new PKG replaces the app, also while it is open. The person gets the new version after they quit Within and open it again.
* **Windows:** the new MSI replaces the old one and closes a running copy, which ends that person's session. Deploy it outside working hours. In Intune, set **Uninstall previous version** to **No**.
* **Older version:** on macOS, deploy the older PKG. On Windows, uninstall, then install the older MSI.

## Uninstall

* **macOS:** run `sudo sh uninstall-within.sh` from the kit. It quits Within, resets its permissions and removes the app. Jamf Pro passes script options in parameters 4 and 5. Intune passes none, so set the options at the top of the script.
  * The option `--remove-user-data` also deletes every user's Within settings and logs, and signs out the person who is signed in. You can't undo it.
* **Windows:** run `msiexec /x "Within-<version>-x64.msi" /qn` for the installed version.

## Network and security tools

> [accordion] Network destinations
>
> Apart from `downloads.within.ai`, these are the destinations that Companion already uses in the browser. If your firewall, proxy or VPN rules apply to each application, add Within: rules for the browser don't cover it.
>
> | Destination | Port and protocol | Purpose | Required? |
> | - | - | - | - |
> | `app.within.ai` | HTTPS 443 | App interface, product analytics and crash reports | Required |
> | `app-api.within.ai` | HTTPS | Within API and desktop sign-in | Required |
> | `signin.within.ai`, `auth.within.ai`, `api.workos.com`, `signin.klarity.ai`, `auth.klarity.ai` | HTTPS 443, from the person's browser | Sign-in through WorkOS and your identity provider | Required |
> | `*.daily.co`, `*.pluot.blue` | HTTPS and WSS 443 | Media session signalling | Required |
> | Daily media servers and TURN relays (Cloudflare and Twilio), by IP | UDP 23000–26999 and 40000–49999, and UDP and TCP 3478. TURN over TLS on TCP 443 is the fallback | The screen and audio stream | Required. Follow Daily's [corporate firewall guide](https://docs.daily.co/docs/guides/privacy-and-security/corporate-firewalls-nats-allowed-ip-list) to make sure that you complete all the steps. |
> | `downloads.within.ai` | HTTPS 443 | Installers and automatic updates | Not needed for the PKG or the MSI. Only an app that updates itself contacts it |
> | `fonts.googleapis.com`, `fonts.gstatic.com` | HTTPS 443 | Interface fonts | Recommended |
> | `*.usepylon.com`, `*.pusher.com` | HTTPS and WSS 443 | In-app support chat | Optional |
> | `*.headwayapp.co`, `headway-widget.net` | HTTPS 443 | "What's new" panel | Optional |
> | `*.hsforms.com`, `*.hsforms.net`, `*.hubspot.com` | HTTPS 443 | The "Contact us" form on the sign-in page | Optional |
>
> **Real-time media.** Most connection problems have one cause: the call connects, but the screen and audio never arrive. Three rules prevent it:
>
> * Exempt TURN, STUN and ICE traffic from TLS inspection and deep packet inspection. To allow it is not enough.
> * Allow media by IP address, not by hostname. Daily publishes its IP ranges at `https://ip-info.daily.co/ips/ip-info.json`.
> * Allow both relay providers, Cloudflare and Twilio.
>
> Daily's [corporate firewall guide](https://docs.daily.co/docs/guides/privacy-and-security/corporate-firewalls-nats-allowed-ip-list) is the full reference. To confirm that a network works, run [Test your setup](https://docs.within.ai/user-docs/troubleshooting/test-your-setup.md) on the corporate network and with the VPN on.
>
> **Proxies and TLS inspection.** The app uses the operating system's proxy settings, including PAC files, and its certificate store. TLS inspection with your corporate root certificate works for the app's HTTPS traffic. Only the real-time media needs an exemption.

> [accordion] Endpoint security and application control
>
> Allow Within by signer, not by file hash or path. Hashes change with every release.
>
> | Item | macOS | Windows |
> | - | - | - |
> | Signer | Team ID `T7764DPRQ7`, bundle ID `ai.within` | Publisher `Within Intelligence, Inc.` |
> | Install path | `/Applications/Within.app` | `C:\Program Files\Within` |
> | Processes | `Within`, `Within Helper`, `Within Helper (GPU)`, `Within Helper (Renderer)`, `Within Helper (Plugin)` | Several `Within.exe` processes |
>
> * On Windows, use publisher rules in App Control for Business (WDAC) or AppLocker, and signer exclusions in your EDR.
> * An EDR can flag these behaviours, and all are expected: screen capture, microphone and system audio capture, outbound WebRTC traffic over UDP, and just-in-time compiled JavaScript.
> * If your tool needs file hashes, the SHA-256 of each installer is in the kit's `SHA256SUMS.txt` and in `releases.json`.

## Frequently asked questions

> [accordion] Can MDM grant Screen Recording so people aren't asked?
>
> No. macOS doesn't let any profile grant Screen Recording. The Screen Recording profile lets a person who is not an administrator click **Allow**, once.

> [accordion] Does Within start by itself at login?
>
> Not after the install. Within registers a login item when a person saves a schedule. The login-items profile approves that login item, so macOS adds it without a notice.

> [accordion] Which computers does Within not support?
>
> Intel Macs, Windows on Arm and Windows in S mode. For a virtual desktop, see the **Virtual desktops** tab in [Deploy the app from your MDM](#deploy-the-app-from-your-mdm).

> [accordion] Which MDM tools can deploy Within?
>
> Any MDM that installs a PKG or an MSI and deploys configuration profiles. Examples are Intune, Jamf Pro, Addigy, Kandji, Mosyle and Configuration Manager.

> [!NOTE]
>
> **Need help?** Use the in-app chat — click the chat bubble in the bottom-right corner of Within (staffed 24×5) — or email [support@within.ai](mailto:support@within.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.