import-module servermanager
add-windowsfeature web-server -includeallsubfeature
add-windowsfeature Web-Asp-Net45
add-windowsfeature NET-Framework-Features
Enabled the Ports Http (80)
, Https (443)
, and RDP (3389)
.
There is no proxy.
When I Open the RDP Client:
In other 2 VMs created in Same VNet and of Same OS Same IIS Web server PS Script installed using Custom script extension while provisioning the VMs, able to get the Windows GUI through RDP:
Note:
I have also done the same process in 3 VMs created in the Same Virtual Network, with the Same Custom Script Extension selected that installs IIS Web Server but only one of them is not working in the RDP Client (VM GUI Desktop is not showing other than SConfig command prompt).
Deleted all the 3 VMs and created again to check if any fault of mine while creating the VMs but same result.
In the VM Index Menu > Run Command > I have run the command Set-SConfig -AutoLaunch $False
. Still, same Command prompt occurring instead of Windows Desktop GUI.
In Short:
For the future, when Sconfig comes up: 15. Exit to terminal Set-Sconfig -AutoLaunch $false