From 58c059e7f22f6f75c85e8cc3f216854c202d0237 Mon Sep 17 00:00:00 2001 From: Antonio Date: Thu, 23 Jul 2026 03:52:37 +0000 Subject: [PATCH] Add LocalSystemInfo.psm1 --- LocalSystemInfo.psm1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 LocalSystemInfo.psm1 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