Unable to Login to VDI After Changing DNS under IP Settings

Prev Next

Issue: User is unable to log in to their Virtual Desktop instance after changing the IP settings (Ip, DNS, etc.) at the OS level. This results in a login failure with an error displayed on the Workspot Client. 

A screen shot of a message

AI-generated content may be incorrect.

 

 

Cause: User manually modified the IP settings at the VM OS level as a result VM lost network connectivity to domain Controller to authenticate and login. 

A screenshot of a computer

AI-generated content may be incorrect.

 

 

Possible Solution: To restore network connectivity, reset the DNS/network settings inside the OS.  

  • For Azure VMs: Using Azure Run Command (Requires VM and Azure Agent to be running), execute the following PowerShell command: 

Get-NetAdapter | Set-DnsClientServerAddress -ResetServerAddresses 

 

Note: If resetting DNS did not help, try replacing the existing NIC https://docs.workspot.com/docs/replace-nic-when-an-azure-vm-loses-network-connectivity 

 

 

  • For GCP VMs: Using a GCP Startup Script, add the following command under Metadata > Startup Script in the VM instance settings: 

netsh interface ip set dns "Ethernet" dhcp