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