Hyper-V
Install ubuntu in generation 2 mode
Un-check secure boot
Ubuntu OS
#Get the scripts from GitHub
$ sudo apt-get update
$ sudo apt install git
$ git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init
#Make the scripts executable and run them...
$ cd ~/xrdp-init/ubuntu/18.04/
$ sudo chmod +x install.sh
$ sudo ./install.sh
$ reboot
Windows powershell in administratoe mode:
Set-VM -VMName Ubuntu -EnhancedSessionTransportType HvSocket
Log-in
UNCHECK Printers in local resources.