Skip to content

Instantly share code, notes, and snippets.

@Stephanevg
Created November 26, 2019 06:25
Show Gist options
  • Save Stephanevg/0c822ad8f15420306a111826dfbf378d to your computer and use it in GitHub Desktop.
Save Stephanevg/0c822ad8f15420306a111826dfbf378d to your computer and use it in GitHub Desktop.
returns FQDN from the local computerNAme.
([System.Net.Dns]::GetHostByName(($env:computerName))).HostName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment