# Health Policies

Health policies execute health checks on specified target groups on a defined schedule. Once a health policy has run, it will be reported to the home dashboard in real-time.

Health policies are created with the following components:

* [Health Checks](https://docs.adaptiva.com/onesite-health/health-checks) - Defines the *how* of a health policy, e.g. checking if BitLocker drive encryption is enabled and executing remediation if necessary.
* [Schedules](https://docs.adaptiva.com/platform-guide/platform-features/schedules) - Defines the *when* of a health policy, e.g. a policy will execute every Tuesday and Thursday at 10 AM.
* [Groups](https://docs.adaptiva.com/platform-guide/platform-features/assets/groups) - Defines the *where* of a health policy, e.g. where does this policy get executed.

These components will either need to be created, or you can use the available built-in options.

## Create a Health Policy

Once you have your desired health checks, schedules, and groups, you can add them to your health policy.

1. Select **Health Policies** from the side navigation.

### General Settings

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-59d424142fc109cb94becafbcc9993fb23b535ee%2Fgeneral-settings.png?alt=media)

1. Enter a **Name** and an optional **Description**.
2. Toggle **ON** **Policy Enabled**.
3. Select a date/time for **Policy Start Time**.
   * This will determine when a policy will begin executing on its defined schedule. If your schedule is set to run on Tuesdays at 10 AM and you create your policy with a start date of Wednesday, your policy will run the following Tuesday.
4. (Optional) Select a date/time for **Policy End Time**.
5. Toggle **ON** or **OFF** **Use Server Time Zone**.
   * Server time zone - Clients on different time zones will receive health checks at the same time. E.g. Seattle clients will receive health checks at 6 AM PST, while New York clients will receive them at 9 AM PST.
   * Local time zone - Clients on different time zones will receive health checks at different times based on client time zones. E.g. Seattle clients will receive health checks at 6 AM PST, while New York clients will receive them at 6 AM EST.
6. Toggle **ON** or **OFF** **Encrypt Policy**.
   * Encrypt policy will encrypt the health policy .content file with a Policy object and secure hash.

### Execution Schedules

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-14a74f564850019f3cddb838efa3b68600381ced%2Fexecution-schedules.png?alt=media)

1. Toggle **ON** or **OFF** **Run Policy as Instant**.
   * If run as instant, it will remove the schedule and report results only when manually executed (see [Save and Run](#save-and-run) and [More Options](#more-options) below on how to run manually).
2. Click **Browse** next to **Schedules** to select one or more schedules. You also have the ability to create a custom schedule if you have not already done so from **Platform Features > Schedules**.

### Target Groups and Devices

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-79b31c6281033c955aecde91e29b1eb62b83ade8%2Ftarget-groups-and-devices.png?alt=media)

1. Toggle **ON** or **OFF** **Use All Adaptiva Clients**.
2. Select **Browse** next to **Target Groups** if **Use All Adaptiva Clients** is toggled **OFF**. You can select either the built-in groups or create your own if you haven't done so already.

### Health Checks

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-06060e7b8c051f2a11dcffab3fcf1dbb5400e331%2Fhealth-checks.png?alt=media)

1. Click **+ Add from Policy** to select the health checks from a pre-existing health policy or **+ Add Health Checks** to add individual health checks.
2. If a health check is added that has a remediation workflow, you can toggle **ON** **Auto Remediation** from the table.
   * When enabled, this will ensure that if a remediation is necessary, it will automatically apply when a Health Policy is run.

For more information regarding built-in health checks, please see our [Appendices](https://docs.adaptiva.com/onesite-health/appendix-health-checks) page for more information.

#### Advanced Options

These options define how a health policy will be executed for server and client devices with specific workflows. These should be left as default unless otherwise directed by our [Support Team](https://adaptiva.com/support).

### Save and Run

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-7d0133b33720ba62fccc132305417d250d789e5f%2Fsave-and-run-button.png?alt=media)

Once you click **Save and Run** it will immediately run your health check and open a dashboard for your health check metrics.

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-3367878d36377a5f8d11eb3f8e556d93cf612a83%2Fsave-and-run-dashboard.png?alt=media)

## More Options

On the Health Policies page, you have additional actions you can select from the ellipses (**...**) next to any Health Policy.

![](https://3670341675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rvFpEZc67qTWwlOhxtu%2Fuploads%2Fgit-blob-d3c590dda5cc377ee84acfc8a74ecee98f04dd02%2Fmore-options-dropdown.png?alt=media)
