Invoke-WebRequest https://s3.amazonaws.com/ec2-windows-drivers-downloads/NVMe/Latest/AWSNVMe.zip -OutFile $env:USERPROFILE\nvme.zip Expand-Archive $env:USERPROFILE\nvme.zip $env:USERPROFILE\nvme -Force & "$env:USERPROFILE\nvme\install.ps1" Invoke-WebRequest https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/Latest/AwsEnaNetworkDriver.zip -OutFile $env:USERPROFILE\ena.zip Expand-Archive $env:USERPROFILE\ena.zip $env:USERPROFILE\ena -Force & "$env:USERPROFILE\ena\install.ps1" pnputil /enum-drivers | Select-String "awsnvme.inf|ena.inf" -Context 0,3 powercfg /h off shutdown /s /t 0 Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" -Name "1806" -Value 0 # Stop Windows from attaching the zone mark to downloaded files New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" -Force | Out-Null Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" -Name "SaveZoneInformation" -Value 1 (Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server').fDenyTSConnections Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Select DisplayName,Enabled