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

# Windows Login v2.0 - How to Deploy Windows Login v2.0 using Microsoft Intune (MDM)

> This document provides step-by-step instructions to deploy Windows Passwordless v2.0 using Microsoft Intune (MDM).

## Introduction

This document provides step-by-step instructions to deploy Windows Passwordless v2.0 on managed Windows devices using Microsoft Intune (MDM).

## Prerequisites

* You must have admin access to the Microsoft Intune Admin Center.

* You must have the installation PowerShell script (.ps1).

* You must have the detection rule PowerShell script (rule.ps1).

  > [!NOTE]
  >
  > **Note:** Contact [Oloid Support](mailto:support@oloid.ai) to obtain the PowerShell script (.ps1) and detection rule script (rule.ps1).

* You must have downloaded the Microsoft Win32 Content Prep Tool (IntuneWinAppUtil).

  > [!NOTE]
  >
  > **Note:** To download the **Microsoft Win32 Content Prep Tool**, click [here](https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool/archive/refs/tags/v1.8.7.zip).

* You must download the **AutoPairConfig.txt** file from the Tenant Admin Portal. For more information, refer to [Windows Login - How to generate Auto-Pair config file for Windows Login in Tenant Admin Portal](https://oloid.help/en/articles/10441578-how-to-generate-auto-pair-config-file-for-windows-login-in-tenant-admin-portal).

* You must download the **Windows Login v2.0 installer file**. For more information, refer to [Windows Login v2.0 - How to download Windows Login v2.0 installer file from Tenant Admin Portal](https://oloid.help/en/articles/15069295-windows-login-v2-0-how-to-download-windows-login-v2-0-installer-file-from-tenant-admin-portal)

## Steps to Deploy Windows Passwordless 2.0 using Microsoft Intune (MDM)

1. [Create App Package](#steps-to-create-app-package)
2. [Create and Configure App](#create-and-configure-app)
   The Windows Passwordless v2.0 is deployed successfully to the target devices.

### Steps to Create App Package

1. Place the **Windows Login v2.0 installer file, AutoPairConfig.txt file**, and **installation PowerShell (.ps1) script** in the same folder.

   > [!NOTE]
   >
   > **Note:** If the AutoPair configuration file is added, the app is installed and paired automatically. If not, manual pairing is required after installation.

   ![How to Deploy Windows Login v2.0 using... - screenshot 1](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-6bba1895.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=fdb7e79d3c63ea381586325ebe80cf94)
2. Download and open the Microsoft Win32 Content Prep Tool.
3. Enter the following details when prompted by the tool:
   1. **Source folder:** Enter the folder path that contains the `install.ps1` file, autopair config file and the installer file.
   2. **Setup file:** Enter the installer file name with the file extension.
   3. **Output folder:** Enter the folder path where the `.intunewin` file must be created.

      > [!NOTE]
      >
      > **Note:** Before you generate the `.intunewin` file, update the following values in the `install.ps1` script:

      * Set `$InstallerName` to the name of the `.exe` installer file used to install the app.
      * In `$SilentArgs`, set the required feature flags to `true` or `false` based on the features you want to install.

        ![How to Deploy Windows Login v2.0 using... - screenshot 2](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-e3adb2f6.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=96dd3fe090e5f571b2bfe8fb822183e0)

        ![How to Deploy Windows Login v2.0 using... - screenshot 3](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-08157d91.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=25b7980d5e20f9c524818e1db16ad4bd)

        The app package is created successfully.
        Navigate to the output folder and verify that the **.intunewin** app package file has been created successfully.

        ![How to Deploy Windows Login v2.0 using... - screenshot 4](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-d11d1f0b.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=73e33dacf6504f43da50a0aa12608f76)

### Create and Configure App

1. Log in to **Microsoft Intune Admin Account**.
   The Microsoft Intune home screen is displayed.
2. Navigate to **Apps > Windows.**

   ![How to Deploy Windows Login v2.0 using... - screenshot 5](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-86312310.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=2f8340e76803a80e6d61fef52ad44635)

   The **Windows apps** screen is displayed.
3. Click **+ Create**.

   ![How to Deploy Windows Login v2.0 using... - screenshot 6](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-37b228d7.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=a92df92f56ff5e3cacdd601469c683cd)

   The **Select app type** screen is displayed.
4. In the app type dropdown, select **Windows app (Win32)** and click **Select**.

   ![How to Deploy Windows Login v2.0 using... - screenshot 7](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-e7fba6f8.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=55701d4d09a72cb35359bbf4fb1e52fb)

   The **Add App** screen is displayed.
5. On **App Information** tab, do the following:
   1. Click **Select app package file**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 8](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-76ebb94e.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=62cb14e653fe00c2c428f3988be35584)

      The **App package file** screen is displayed.

   2. Browse and select the **.intunewin app package file**.

      > [!NOTE]
      >
      > **Note:** Select the same **.intunewin** package file that was created in the Steps to Create Package File section.

   3. Click **OK**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 9](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/3dbd4722-34a1-4c3f-b02b-32ab3748191c-84063e1a.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=351d0ac33c02aa47b29a31e76bbd400e)

      The **App information** tab is displayed.

   4. Enter **Publisher**.

   5. Click **Next**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 10](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-00a89d4d.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=f7f352737fa95b3ac1ac58b240bbc894)

      The **Program** tab is displayed.
6. On the Program tab, do the following:
   1. Ensure command line is selected as installer type.

Enter **Install command**.

> [!NOTE]
>
> **Note:** Use the following command.

```
%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File .\install.ps1
```

3. Ensure command line is selected as uninstaller type.

Enter **Uninstaller command**.

> [!NOTE]
>
> **Note:** Use the following command.

```
%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Uninstall-Package -Name 'Oloid Passwordless Login' -Force"
```

5. Select **No** as Allow available uninstall (Optional).

   > [!NOTE]
   >
   > **Note:** Select **No** to prevent the application from being uninstalled through the **Company Portal** or **Windows Control Panel**.

6. Ensure **System** is selected as Install behaviour.

7. Click **Next**.

   ![How to Deploy Windows Login v2.0 using... - screenshot 11](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-d59303d4.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=7fdf73d9d46754bbc967d8e8ac56157b)

   The **Requirements** tab is displayed.

8. On the requirements tab, do the following.
   1. Select **No** as Check operating system architecture.
   2. Select **Windows 10 1607** as Minimum operating system.
   3. Click **Next**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 12](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-1cb75c03.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=e56b5716464176342672266ed15fd037)

      The **Detection Rules** tab is displayed.

9. On the Detection Rules tab, do the following.
   1. Select **Use a custom detection script** as Rules format.

   2. **Upload** Script file.

      > [!NOTE]
      >
      > **Note:** To get the Script file, contact [Oloid Support](mailto:support@oloid.ai).

   3. Ensure **No** isselected as Run script as 32-bit process on 64-bit clients.

   4. Ensure **No** isselected as Enforce script signature check and run script silently.

   5. Click **Next**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 13](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-316d5f0b.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=f36c23165f63385a5d91006f15b3ee09)

      The **Dependencies** tab is displayed.

   6. Click **Next**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 14](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-c4dc9b9a.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=e121404cb44a04867126079d85bba823)

      The **Supersedence** tab is displayed.

   7. Click **Next**.

      ![How to Deploy Windows Login v2.0 using... - screenshot 15](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-812e8242.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=da2838ced20ca07c6e786725727bd76a)

      The **Assignments** tab is displayed.

10. On the Assignments tab, do the following.
    1. On **Required** section, click **Add group** to assign this profile to your target device groups.

       ![How to Deploy Windows Login v2.0 using... - screenshot 16](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-ebda34dd.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=00e7ce293c678c39e5dcd04cdae69335)

       The **Select groups** pop-up is displayed.
    2. Do the following.
       1. Select the **group(s**) from the list.

          > [!NOTE]
          >
          > **Note:** You can select multiple groups (If required).

       2. Click **Select**.

          ![How to Deploy Windows Login v2.0 using... - screenshot 17](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-6a76655a.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=a2c8db8889fcb681705fb5b8c4bc4b9e)

          The Group is added in the list.

11. Click **Next**.

    ![How to Deploy Windows Login v2.0 using... - screenshot 18](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-8bf08c5e.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=2f730bf1fe00f480e221292afcff21de)

    The Assignment tab is configured successfully and **Review + create** tab is displayed.

    > [!NOTE]
    >
    > **Note:** To assign groups under the **Available for enrolled devices** and **Uninstall sections**, repeat Steps **9a** and **9b** as required.

12. Review all settings and click **Create.**

    ![How to Deploy Windows Login v2.0 using... - screenshot 19](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-79b5de1f.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=9dcba2ae44d62c0ed58de237e038fe29)

    The app the created successfully and added in the apps screen.

    ![How to Deploy Windows Login v2.0 using... - screenshot 20](https://mintcdn.com/oloid-999c42b2/5uiIqG9_6OuRLzl_/images/intercom/15357528/image-675713ec.png?fit=max\&auto=format\&n=5uiIqG9_6OuRLzl_\&q=85\&s=e5ad8a7f84cbea44c2c869dae8e31332)
