Disable Enhanced Session Mode

This commit is contained in:
James Stringer
2021-11-21 03:30:56 -08:00
parent 6cf691c7a3
commit 51ae8d6390

View File

@ -4277,6 +4277,7 @@ param(
Set-VM -Name $VMName -ProcessorCount $CPUCores -CheckpointType Disabled -LowMemoryMappedIoSpace 3GB -HighMemoryMappedIoSpace 32GB -GuestControlledCacheTypes $true -AutomaticStopAction ShutDown
Set-VMMemory -VMName $VMName -DynamicMemoryEnabled $false
Set-VMProcessor -VMName $VMName -ExposeVirtualizationExtensions $true
Set-VMHost -ComputerName $ENV:Computername -EnableEnhancedSessionMode $false
Set-VMKeyProtector -VMName $VMName -NewLocalKeyProtector
Enable-VMTPM -VMName $VMName
Add-VMDvdDrive -VMName $VMName -Path $SourcePath