Windows Server 2022 – Basic Configurations & Tweaks – Hyper V
====================================================================
POWERSHELL COMMANDS BELOW: Give it a Try.
====================================================================
Tip: Always Open PowerShell as Administrator. Commands should be run without { } .
1. Enable Hyper-V Enhanced session mode
{Set-VMhost -EnableEnhancedSessionMode $True}
2. Disable data collection:
{Set-ItemProperty -Path ‘HKLM:SOFTWAREPoliciesMicrosoftWindowsDataCollection’ -Name ‘AllowTelemetry’ -Value 0}
{stop-service diagtrack}
{set-service diagtrack -startuptype disabled}
3. Speed up app launches at boot:
{Get-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindowsCurrentVersionExplorerSerialize’ -Name ‘StartupDelayInMSec’ | Set-ItemProperty -Name ‘StartupDelayInMSec’ -Value 0}
4. Enable the Windows Update service:
{Set-Service -Name wuauserv -StartupType Automatic}
5. Enable Remote Management:
{Enable-PSRemoting -Force}
6….