Documentation Index
Fetch the complete documentation index at: https://mintlify.com/VirtualDrivers/Virtual-Display-Driver/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thechangeres-VDD.ps1 script provides a simple command-line interface to change the resolution of the Virtual Display Driver. It automatically handles administrator privilege elevation and installs required PowerShell modules.
Requirements
- Virtual Display Driver must be installed and enabled
- PowerShell 5.1 or later
- Internet connection (for first run to install dependencies)
- Required PowerShell modules (automatically installed):
DisplayConfigv1.1.1MonitorConfigv1.0.3
Parameters
-xres (Position 0)
The horizontal resolution (width) in pixels.
Type: IntegerRequired: Yes
Aliases:
X, HorizontalResolutionPosition: 0 (can be specified without parameter name)
-yres (Position 1)
The vertical resolution (height) in pixels.
Type: IntegerRequired: Yes
Aliases:
Y, VerticalResolutionPosition: 1 (can be specified without parameter name)
Usage Examples
Set 1920x1080 Resolution
Common Resolutions
Custom Aspect Ratios
Portrait Mode
How It Works
1. Self-Elevation
If the script is not running with Administrator privileges:- Detects the current privilege level
- Relaunches itself with UAC elevation
- Passes all bound parameters to the elevated instance
- Exits the original process
2. Dependency Installation
The script sourcesset-dependencies.ps1 which:
- Checks if required modules are installed
- Installs
DisplayConfigv1.1.1 from PSGallery if needed - Installs
MonitorConfigv1.0.3 from PSGallery if needed - Imports the modules into the current session
- Sets PSGallery repository as trusted
3. Display Identification
Finds the Virtual Display Driver by:- Using
Get-DisplayInfoto enumerate all displays - Filtering for displays with name “VDD by MTT”
- Extracting the DisplayId for the target display
4. Resolution Change
Applies the new resolution:- Uses
Set-DisplayResolutionfrom the DisplayConfig module - Passes the DisplayId, width, and height parameters
- Windows applies the resolution change immediately
Script Source
Here’s the complete script:Troubleshooting
”Display not found” Error
Possible causes:- Virtual Display Driver is not installed
- Driver is installed but disabled
- Driver display name doesn’t match “VDD by MTT”
Module Installation Fails
Possible causes:- No internet connection
- PowerShell Gallery not accessible
- Execution policy restrictions
Resolution Change Doesn’t Apply
Possible causes:- Resolution not supported by the driver
- Display is in an error state
Script Requires set-dependencies.ps1
The script expectsset-dependencies.ps1 to be in the same directory. Make sure both files are in the same folder:
Automation Examples
Batch File for Quick Resolution Change
Createset-1080p.bat:
Multiple Resolution Shortcuts
Create different batch files for common resolutions:Call from Another PowerShell Script
Resolution Limits
The Virtual Display Driver supports a wide range of resolutions. Common limits:- Minimum: Typically 640x480 or higher
- Maximum: Depends on driver configuration (can support 8K and beyond)
- Aspect ratios: Any custom aspect ratio is supported
Related Scripts
- virtual-driver-manager.ps1 - Install and manage the driver
- toggle-VDD.ps1 - Enable/disable the driver
- HDRswitch-VDD.ps1 - Toggle HDR mode
- primary-VDD.ps1 - Set as primary display