# ActivTrak Detection and Remediation Integration Guide

## Overview

This guide provides instructions on how to integrate detection and remediation scripts for ActivTrak into Microsoft Intune. The detection script identifies whether ActivTrak is installed and if the "SVCTCOM" service is running. The remediation script aims to start the "SVCTCOM" service and change its startup type to Automatic if it's stopped or not set to Automatic.

## Prerequisites

- Microsoft Intune subscription.
- Access to the Intune portal with the necessary permissions to create and deploy PowerShell scripts.
- Access to the devices where ActivTrak is expected to be installed.

## Steps

### 1. Upload Detection and Remediation Scripts to Intune

1. Log in to the Microsoft Intune portal.
2. Navigate to **Devices** > **PowerShell scripts**.
3. Click on **Add** to upload the detection script (**ATDetection.ps1**) and the remediation script (**ATRemediation.ps1**).
4. Provide a meaningful name and description for each script.
5. Upload the corresponding script file and click **Next**.
6. Click on **Assignments**.
7. Click on **Add group** to select the target devices or groups where you want to deploy the detection script.
8. Review the script settings and click **Add** to upload.
9. Click **Next** and then **Review + save** to deploy the detection script.

### 2. Monitor Execution and Results

1. After deployment, monitor the execution of both scripts from the Intune portal.
2. Check the logs provided by the scripts to verify their execution status and any errors encountered.
3. Ensure that the remediation script successfully starts the "SVCTCOM" service and changes its startup type to Automatic where necessary.

## Notes

- Ensure that devices have the necessary permissions to execute PowerShell scripts deployed via Intune.
- Regularly review and update the scripts as needed to accommodate changes in the environment or requirements.
- Test the scripts in a non-production environment before deploying them widely.
