For Windows VMs
powershell Install-PackageProvider -Name NuGet -Force
powershell Install-Module PSWindowsUpdate -force
powershell Set-ExecutionPolicy bypass
powershell Import-Module PSWindowsUpdate
powershell Get-WindowsUpdate
powershell Install-WindowsUpdates -AcceptAll -AutoReboot
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
powercfg.exe -change -standby-timeout-ac 0
setup64.exe /s /v "/qn reboot=r"
tzutil /l
and then you can set your desired zone with something like tzutil /s "Central Standard Time"
For Linux VMs
apt install openssh-server -y
mkdir /etc/ssh/default_keys
mv /etc/ssh/ssh_host_* /etc/ssh/default_keys/
dpkg-reconfigure openssh-server
systemctl enable ssh.service
systemctl start ssh.service
Get new episodes of 7 Minute Security automatically