Add LocalSystemInfo.psm1
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
function Get-LocalComputerName {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Retrieves the name of the local computer.
|
||||
#>
|
||||
[CmdletBinding()]
|
||||
param()
|
||||
|
||||
process {
|
||||
# Using cross-platform .NET method for native speed and compatibility
|
||||
return [System.Environment]::MachineName
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user