[Windows] How to find the FQDN of a Windows 10 machine in 2019

Command Prompt (CMD)

Open a command prompt in Windows 10, you can do this by typing in ‘cmd‘ in the search bar. Then copy and paste the command below to retrieve the FQDN of your machine.

echo %COMPUTERNAME%.%USERDNSDOMAIN%

Powershell

If you want to print the FQDN with Powershell you can run this:

$myFQDN=(Get-WmiObject win32_computersystem).DNSHostName+"."+(Get-WmiObject win32_computersystem).Domain ; echo $myFQDN

Leave a Reply

You are currently viewing [Windows] How to find the FQDN of a Windows 10 machine in 2019