Skip to content

Instantly share code, notes, and snippets.

View shiroinekotfs's full-sized avatar
🐱
Nyan~

白いねこ shiroinekotfs

🐱
Nyan~
View GitHub Profile
@shiroinekotfs
shiroinekotfs / Hyper-V PCI-Passthroug.ps1
Created August 26, 2025 08:53 — 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