Skip to content

Instantly share code, notes, and snippets.

@Celoxocis
Last active April 23, 2018 07:35
Show Gist options
  • Save Celoxocis/133edffbd866ed8aa9b6144fc34e82fe to your computer and use it in GitHub Desktop.
Save Celoxocis/133edffbd866ed8aa9b6144fc34e82fe to your computer and use it in GitHub Desktop.
Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName <VMName> | Set-VMNetworkAdapter -MacAddressSpoofing On
Format-Volume -DriveLetter $driveletter -NewFileSystemLabel $drivelabel -FileSystem NTFS -AllocationUnitSize 65536 –Force -Confirm:$false -UseLargeFRS
fsutil fsinfo ntfsinfo d:
Enable-VMIntegrationService - Name 'Guest Service Interface" -VMName VMName
Copy-VMFile -Name DEMO01 -SourcePath C:\Inst\some.iso -DestinationPath 'C:\VMCopyFiles\some.iso' -FileSource Host -CreateFullPath
PS C:\> Copy-VMFile "Test VM" -SourcePath "D:\Test.txt" -DestinationPath "C:\Temp\Test.txt" -CreateFullPath -FileSource Host
Get-VM * | Set-VMMemory -DynamicMemoryEnabled $True -MaximumBytes 8GB -MinimumBytes 256MB -StartupBytes 512MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment