Skip to content

Instantly share code, notes, and snippets.

View mpvasilis's full-sized avatar

Vasilis Balafas mpvasilis

View GitHub Profile
@mpvasilis
mpvasilis / Hyper-V PCI-Passthroug.ps1
Created November 4, 2022 14:20 — forked from Ruffo324/Hyper-V PCI-Passthroug.ps1
Hyper-V PCIe passthrough CheatSheet
# 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