How To Get Fully Qualified Domain Name Windows Snippet
To get the FQDN for the current host:
1[System.Net.Dns]::GetHostByName(($env:computerName))
To get the FQDN for the current host:
1[System.Net.Dns]::GetHostByName(($env:computerName))
© Copyright 2024, AttuneOps | Documentation Structure Powered by Divio.