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

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Run Mono in a Windows environment

> Install the Mono Connector as a Windows service and sign employees in through AD FS with SAML.

In a Windows environment, the Mono Connector (The small program on site that connects devices to the Node, outward only.) runs as a Windows service on a server in the office. Employees sign in through AD FS. The Node itself runs on Linux, on Kubernetes or in Mono Cloud.

> [accordion] What you need
>
> * Windows Server 2019 or later, or Windows 10 (1809) or 11, on x64 or ARM64.
> * PowerShell as administrator on this server.
> * For sign-in: AD FS with its metadata address, for example `https://adfs.muster.example/FederationMetadata/2007-06/FederationMetadata.xml`.

```mermaid theme={"system"}
flowchart LR
  subgraph lan[Büro Zürich]
    W[Windows Server with Mono Connector] --> F[File server]
    W --> AD[Active Directory]
    ADFS[AD FS]
  end
  W -- outward only --> N[Node]
  P[Employees] -- SAML --> ADFS
  ADFS --> N
```

## Install the Mono Connector on Windows

**1. Get the line for Windows**

Open Operations › “Add” › “Pair a device at a site” and the “Windows” tab.

**2. Run the line in PowerShell**

Open PowerShell as administrator (right-click Start › Terminal (Admin)) and run the line.

```powershell Windows theme={"system"}
$mono = iwr -UseBasicParsing -MaximumRedirection 0 -ErrorAction Stop https://ki.muster.example/connector/install.ps1; if ($mono.StatusCode -ne 200 -or "$($mono.Content)" -notlike '# Mono Connector*') { throw 'Mono Connector: your server did not deliver install.ps1; nothing was installed.' }; & ([scriptblock]::Create($mono.Content)) -Code 7Q4K-2D9M
```

PowerShell then shows the check code. The line does not change the execution policy.

**3. Compare the check code and pair**

Compare the code in the Console, enter a name, such as “Büro Zürich”, and choose “Code matches, pair”.

> [!TIP]
>
> Under Windows › Services, the “Mono Connector” service is running. The Console shows the device as “online”.

## Sign-in through AD FS

You set up an organization sign-in over SAML under Access › “Sign-in” › “Add method”. Choose “Another provider”, then AD FS or “Another provider with SAML 2.0”. Mono is the application; the password stays with AD FS. The steps are in [Connect SAML or OpenID Connect](https://mono.mintlify.site/en/admins/saml-oidc.md).

> [accordion] What the service may do on the server
>
> The service runs under the virtual account `NT SERVICE\MonoConnector`, with no password and no administrator rights. It starts delayed with Windows. It reaches shares on a file server as the computer account. Its settings, its pairing and its logs are under `C:\ProgramData\Mono\Connector`, readable only by SYSTEM, the administrators and the service.

> [accordion] Read the Active Directory
>
> The Mono Connector reads groups and people from the local AD, read-only. An AD password never passes through Mono. How to connect it is described in [Connect an on-premises Active Directory](https://mono.mintlify.site/en/admins/active-directory.md).

> [accordion] Updates
>
> The scheduled task “Mono Connector Update” installs every update in the Node’s maintenance window, waits for running jobs and goes back on a failure. If the device was installed before this feature, Operations › “Sites” shows “Reinstall once” with the `-Upgrade` line. Pairing and settings are kept.

> [accordion] Undo
>
> Under Connectors, choose “Unpair” on the device. On the server, the installer with `-Uninstall` removes the service and its files.

> [accordion] If something does not work
>
> | What you see | What helps |
> | - | - |
> | PowerShell reports missing rights | Open PowerShell as administrator. |
> | The messages are in German | Choose the language with `-Lang en`. |
> | “the folder … does not exist” | Check the folder’s path on the server. |
> | The service starts, the device stays “offline” | The server cannot reach the Node over HTTPS (port 443). Check the proxy and the outbound firewall. |

## Next

> [card] [Pair a Mono Connector](https://mono.mintlify.site/en/admins/pair-connector.md)
>
> All systems and the check code.

> [card] [SAML or OpenID Connect](https://mono.mintlify.site/en/admins/saml-oidc.md)
>
> AD FS as organization sign-in.

> [card] [On-premises Active Directory](https://mono.mintlify.site/en/admins/active-directory.md)
>
> Groups and people from the AD.

> [card] [Network drive and scanner](https://mono.mintlify.site/en/admins/shares-scan-legacy.md)
>
> Connect the file server’s folders.


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