This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Change to name of TARGET-VM. | |
| $vm='CHANGE_ME' | |
| # Change to PCI device location (💡 Location). | |
| $Location = 'CHANGE_ME' | |
| # Enable CPU features. | |
| Set-VM -GuestControlledCacheTypes $true -VMName $vm | |
| # Host-Shutdown rule must be changed for the VM. | |
| Set-VM -Name $vm -AutomaticStopAction TurnOff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: This script will automatically copy the necessary GPU drivers from your current host machine into a Hyper-V Virtual Machine | |
| # so you can pass through the GPU to the VM. You should run this whenever you update your graphics drivers on the host. | |
| # | |
| # Author: ThioJoe -- https://github.com/ThioJoe | |
| # | |
| # Note: Currently this only works for Nvidia GPUs. But it does support if you have multiple GPUs. | |
| # | |
| # OPTIONAL ARGUMENTS: | |
| # -debug | Enables debug messages that pause the script for each step (No additional string required, just add -debug) | |
| # -name | Sets the virtual machine name so it doesn't need to ask |