Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
SanxLog
1.1.0
Private/Core/Get-Hostname.ps1
<#
.SYNOPSIS
Returns the hostname of the current machine.
#>
function
Get-Hostname
(
)
{
return
[System.Net.Dns]
::
GetHostName
(
)
.
ToString
(
)
}