Skip to content

Instantly share code, notes, and snippets.

@devdilson
Created October 23, 2021 15:42
Show Gist options
  • Save devdilson/366f40174ad951a654755e26cbc3ce27 to your computer and use it in GitHub Desktop.
Save devdilson/366f40174ad951a654755e26cbc3ce27 to your computer and use it in GitHub Desktop.
foreach($Adapter in Get-NetAdapter)
{
New-NetIPAddress –IPAddress [IPAdresse] -DefaultGateway [Gateway] -PrefixLength [CIDR] -InterfaceIndex $Adapter.InterfaceIndex
}
@devdilson
Copy link
Author

qemu-system-x86_64 --enable-kvm -cpu host -smp 8 -m 8192 -drive format=raw,file=/dev/sdb -vnc 127.0.0.1:1

qemu-system-x86_64 -enable-kvm -smp 4 -m 4096 -boot d -cdrom windows.iso -drive file=/dev/sda,format=raw,media=disk -vnc 127.0.0.1:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment