How do I get the localhost name in PowerShell? May 31, 2022 by IT Nursery How do I get the localhost (machine) name in PowerShell? I am using PowerShell 1.0. 10 Answers 10