Do not Enter PowerShell command. First set the Port by going into the registry,

 

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TerminalServerGateway\Config\Core

 

Here you will have the opportunity to change the gateway port. Look for "HttpsPort" double click, and select Decimal and change port to whatever you like. After this is completed. Run the command you have through PowerShell.

 

 

 

@Akshay_Naik 

We support Ukraine and condemn war. Push Russian government to act against war. Be brave, vocal and show your support to Ukraine. Follow the latest news HERE