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

# Shared device

> Set up Windows PCs that several people share: Shared PC mode, the deletion of the accounts of the people who signed in, the maintenance hour, sign-in on wake, local storage and the page file.

The Shared device control sets up Windows PCs that several people use. It turns on Shared PC mode, lets Windows delete the accounts of the people who signed in, and sets when the daily maintenance runs, whether the PC asks for a sign-in on wake, local storage and the size of the page file.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| | ✅ | | | |

Works on Windows PCs. **Shared PC mode** set to **On, with OneDrive sync** needs Windows 11 22H2 or later: Primo leaves out the PCs that run an older release.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **Shared device**, then click **Add configuration**.

**2. Configure the settings**

Set the settings you need. A setting left empty or on **Not configured** is not written: the PC keeps its own setting.

**3. Select targeting**

Choose which devices to apply the configuration to: all Windows devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

## Settings

> [!WARNING]
>
> With **Account management** on, Windows deletes the accounts of the people who signed in to the PC, with their local
> files.

**Device**

| Setting | Value |
| - | - |
| **Shared PC mode** | **On**, **On, with OneDrive sync**. Turns Shared PC mode on, with or without OneDrive keeping the files of each person in sync. |
| **Sign in again on wake** | **On**, **Off**. On asks for a sign-in again when the PC wakes from sleep. |
| **Local storage** | **On**, **Off**. Off keeps people from saving or seeing files on the storage of the PC: they work in the cloud. |
| **Maintenance start time** | A time of day, as HH:MM, such as `02:30`. The daily maintenance starts then: updates install and accounts are deleted. |
| **Page file size limit (MB)** | From 256 to 32768. Windows applies it to PCs with less than 32 GB of storage. |

**Accounts**

| Setting | Value |
| - | - |
| **Account management** | **On**, **Off**. On lets Windows delete the accounts of the people who signed in to the PC, as the settings below say. |
| **Account deletion** | **At sign-out**, **When disk space runs low**, **When disk space runs low or after inactivity**. Needs **Account management** on. |
| **Start deleting below (% free disk space)** | A whole percentage from 0 to 100. Windows starts deleting accounts once free disk space falls under it. Needs **Account management** on. |
| **Stop deleting at (% free disk space)** | A whole percentage from 0 to 100, above the start. Windows stops deleting accounts once free disk space reaches it. Needs **Account management** on. |
| **Inactive account limit (days)** | From 1 to 365. When accounts are deleted after inactivity, the number of days without a sign-in after which an account is deleted. Needs **Account management** on. |

## How it works

Primo sends each Windows PC a configuration profile of the SharedPC CSP, with one setting per option you set: `EnableAccountManager`, `DeletionPolicy`, `DiskLevelDeletion`, `DiskLevelCaching`, `InactiveThreshold`, `MaintenanceStartTime` (in minutes after midnight), `SignInOnResume`, `RestrictLocalStorage` and `MaxPageFileSizeMB`. The setting that turns Shared PC mode on, `EnableSharedPCMode` or `EnableSharedPCModeWithOneDriveSync`, comes last, after the others.

The account manager deletes accounts at sign-out or during the daily maintenance, as **Account deletion** says.

When you remove the configuration, the PC goes back to its own settings, and Shared PC mode is turned off.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace the configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Sign-in screen](https://docs.getprimo.com/mdm/policies/sign-in-screen.md)
* [Login sessions](https://docs.getprimo.com/mdm/policies/login-sessions.md)


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