Skip to content

Instantly share code, notes, and snippets.

@ScriptingPro
Created March 29, 2018 22:06
Show Gist options
  • Save ScriptingPro/bc292c89ee1496f460071c6d7fdc0661 to your computer and use it in GitHub Desktop.
Save ScriptingPro/bc292c89ee1496f460071c6d7fdc0661 to your computer and use it in GitHub Desktop.
Get FQDN DNS HostName of current Computer
[System.Net.Dns]::GetHostByName([System.Environment]::MachineName).HostName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment