# Windows Instance/Guest OS Time Skew

## Problem

The clock within a Windows-based instance is not in sync with the underlying hypervisor time.

## Solution

1. Edit the Boot Configuration Data (BCD) and set `USEPLATFORMCLOCK` to `on` .

{% tabs %}
{% tab title="Powershell" %}

```powershell
bcdedit /set USEPLATFORMCLOCK on
```

{% endtab %}
{% endtabs %}

2. Shutdown the instance, or perform a hard-reboot for the change to take effect.

## Additional Information

If the guest OS is reliant upon the timestamp counter (TSC), timing issues can, and have been documented to occur, as this is reliant upon the CPU, which can have skew in frequency, missed tickets, etc. which lead to time drift, comparative to the real-time clock (RTC).

If you've: a) added the required attribute, b) modified the boot-configuration data to leverage the RTC/system clock, and c) either shutdown, and re-started or hard-rebooted the instance – the change should've taken effect.

Outside of that, with regards to NTP – my recommendation was more along the lines of ensuring that the Windows guest OS synchronizes to a centralized time source itself, such that it isn't reliant upon any of the underlying system timers/clocks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/windows-instance-guest-os-time-skew.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
