# Installing PMDK on Windows

The recommended and easiest way to install PMDK on Windows is to use a Microsoft vcpkg. Vcpkg is an open source tool and ecosystem created for libraries management. PMDK requires following:

* [MS Visual Studio 2015](https://visualstudio.microsoft.com/) or later
* [Windows SDK 10.0.16299.15 ](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk)or later
* perl (i.e. [ActivePerl ](https://www.activestate.com/products/activeperl/)or [StrawberryPerl](http://strawberryperl.com/))
* PowerShell 5 or later

To install the latest PMDK release and link it to your Visual Studio solution at first you need to clone and set up vcpkg on your machine as described on the [vcpkg github page](https://github.com/Microsoft/vcpkg) in **Quick Start** section. Run the following within the powershell:

```
> git clone https://github.com/Microsoft/vcpkg
> cd vcpkg
> .\bootstrap-vcpkg.bat
> .\vcpkg integrate install
> .\vcpkg install pmdk:x64-windows
```

{% hint style="info" %}
**Note:** The last command can take several minutes while it is builds and installs PMDK.
{% endhint %}

After successful completion of all of the above steps, libraries are ready to be used in Visual Studio. No additional configuration is required. Create a new project or open an existing project within Visual Studio (remember to use platform **x64**), then include the PMDK headers in your project.

## Additional Resources

* [Persistent Memory Programming in Windows - NVML Integration](https://docs.microsoft.com/en-us/windows/desktop/persistent-memory-programming-in-windows---nvml-integration) (NVML was renamed to PMDK)


---

# 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://docs.pmem.io/persistent-memory/getting-started-guide/installing-pmdk/installing-pmdk-on-windows.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.
