---
title: "Staging GPU Drivers in Template"
slug: "staging-gpu-drivers-in-template"
updated: 2025-10-27T15:51:47Z
published: 2025-10-27T15:51:47Z
---

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

# Staging GPU Drivers in Template

**Setup, Best Practices, Use**

### **Overview**

GPU drivers do not need to be directly installed on the template VMs. Instead, customers can stage the drivers on the template, allowing them to be installed via **WsSetupComplete** during the Workspot VM desktop provisioning process.

### Prerequisites

- A Template VM
- GPU driver

### Configuration

- Access the GPU Template VM via RDP.

![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/0befa44c-5c4a-4c4b-a05a-c4650f6b0095.png)

- After logging in, enable the display of hidden folders in Windows Explorer.

![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/ebb94756-c256-4da6-b752-4dc0aa2421d5.png)

- 3) Download the latest GPU drivers from Microsoft. Select the latest version (version may differ from below)
  - **NVIDIA GPU drivers:**[Azure N-series NVIDIA GPU driver setup for Windows - Azure Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/n-series-driver-setup)\ ![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/image(83).png)
  - **AMD GPU drivers:**[Azure N-series AMD GPU driver setup for Windows - Azure Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/n-series-amd-driver-setup)

![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/image(84).png)

- Download the latest compatible drivers
- Navigate to ***C:\ProgramData\WorkspotAgent\Config***and save the NVIDIA or AMD GPU driver.

![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/e9252094-c56c-4c1b-97c1-60d3ecd50710.png)

- For the NVIDIA GPU driver, create a text file named **WsSetupComplete.cmd** with the following commands (update filename with current file name)

```powershell
START /MIN /wait "NVIDIA Setup" "C:\ProgramData\WorkspotAgent\Config\412.16_grid_win10_server2016_64bit_international.exe" /s /noreboot /clean
@echo Finshed installing NVIDIA at %time%
```

- For the AMD GPU driver, create a text file named **WsSetupComplete.cmd** with the following commands (update filename with current file name)

```powershell
START /MIN /wait "AMD Setup" "C:\ProgramData\WorkspotAgent\Config\AMD-Azure-NVv4-Driver-21Q2-1.exe" /s /noreboot /clean
@echo Finished installing AMD at %time%
```

- Save file as **WsSetupComplete.cmd** in **C:\ProgramData\WorkspotAgent\Config**

![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/1ba8153e-e3a6-4139-b506-9b66e9693919.png)

- GPU drivers are now staged on the template VM and will be installed when a virtual desktop is provisioned from the template.
- Once the drivers are staged on the template VM and any other software installs or customizations are completed, preview or publish the template from Control.

![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/c8a53f14-8d26-4ce6-9dc3-5bd196cff089.png)
