diff --git a/LocalSystemInfo.psm1 b/LocalSystemInfo.psm1 new file mode 100644 index 0000000..8a02b37 --- /dev/null +++ b/LocalSystemInfo.psm1 @@ -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 + } +} \ No newline at end of file