# Getting Started: Adding Windows Users to a PC

<p class="callout danger">**VERY IMPORTANT: Do NOT map the built-in Windows Administrator account, or any administrator account used to approve or elevate a standard user (UAC prompts, "Run as administrator") or used by technicians for support.**  
When a mapped account first signs in with ID Everywhere, ID Everywhere **replaces that account's Windows password** with a random password that no one knows, and the old password stops working everywhere. ID Everywhere **does not work in Windows administrator approval (UAC) prompts**, which only accept a regular Windows password. A mapped administrator account can no longer approve or elevate anything.  
**Instead:** map each person's own everyday Windows account, and keep a separate local administrator account on the PC that is **never mapped** for admin approval and support. To give a person admin rights, set their mapping's **Windows Access Level** to **Administrator**.</p>

Once a PC is enrolled, you choose how each person gets their Windows account on it:

- **Create a new account**: ID Everywhere creates the Windows account automatically at the person's first sign-in. Best for new PCs and new people.
- **Map an existing account**: connect the person to the Windows account they already use, keeping their files and settings. Best for PCs already in use.

## Before you begin

- The PC is enrolled and shows on **Windows › Devices › Active Enrolled Devices**. See [How to Enroll a Windows Device](https://help.ideverywhere.com/books/windows-integration/page/how-to-enroll-a-windows-device).
- The person is an active user under **Users**, and their device access allows this PC (all devices, or a Device Group that includes it).

## Option 1: Create a new Windows account

1. Optional: on the PC's page (**Manage Device**), under **Add User Mapping**, choose the person and their **Windows Access Level** (Standard User or Administrator). Leave **Windows Username** and **Windows SID** blank, and click **Save Mapping**. If you skip this, they're added as a Standard User when they first sign in.
2. At the Windows sign-in screen, the person selects the **ID Everywhere** tile and signs in with their ID Everywhere email and password.
3. ID Everywhere creates their local Windows account and profile. The Agent then fills in their Windows username, SID and profile path in the portal.

## Option 2: Map an existing Windows account

<p class="callout warning">Do this **before** the person signs in through ID Everywhere on that PC. Otherwise a new, empty account is created for them.</p>

1. **Find the account's details.** On the PC, open PowerShell as Administrator and run: ```
    Get-CimInstance Win32_UserProfile | Where-Object { -not $_.Special -and $_.LocalPath } | ForEach-Object {
        $name = try { ([Security.Principal.SecurityIdentifier]$_.SID).Translate([Security.Principal.NTAccount]).Value } catch { '(unresolved SID)' }
        [PSCustomObject]@{ Username = $name; SID = $_.SID; Profile = $_.LocalPath }
    } | Format-Table -AutoSize
    ```
    
    It lists each account's username, SID and profile path. You can also run it from your RMM tool.
2. **Add the mapping.** In the portal, open the PC (**Windows › Devices › Manage Device**). Under **Add User Mapping** fill in: 
    - **ID Everywhere User**: the person.
    - **Windows Access Level**: Standard User or Administrator. The Agent adds or removes them from the PC's Administrators group to match.
    - **Windows Username**: the username only, without the PC name (for example `jsmith`, not `DESKTOP-1\jsmith`).
    - **Windows SID**: the SID from step 1. Copy it exactly.
    - **Profile Path**: the profile path from step 1, for example `C:\Users\jsmith`.
    
    Click **Save Mapping**.
3. **Sign in.** At the sign-in screen, the person selects their account tile, chooses **Sign-in options**, picks **ID Everywhere**, and signs in with their ID Everywhere email and password.
4. **Check it.** Once signed in, run `whoami /user` and `$env:USERPROFILE` in PowerShell. The SID and profile should match the mapping.

Mapping keeps the account's SID, profile, files and settings. ID Everywhere doesn't create a new profile.

## Confirm it worked

- On the PC's page, the person's mapping shows their Windows username and profile path.
- The **Audit Log** shows a successful Windows sign-in (`windows.auth.success`) for them.
- Anyone who hasn't signed in yet appears on the Dashboard under **Needs Attention** as "waiting for their first Windows sign-in".

## Changing things later

- **Access level:** change it in the person's row under **Current Mappings** and click **Save**.
- **Exceptions to policy:** use **Custom Overrides** on the PC's page. See [Windows Policy Overrides](https://help.ideverywhere.com/books/windows-integration/page/windows-policy-overrides).
- **Remove access:** click **Disable** on the mapping. The person can no longer sign in to that PC through ID Everywhere. Their Windows account and files stay on the PC.