So I have this
$yourusername = Read-Host Get-WMIObject Win32_loggedonuser | Select-String $yourusername
but I want to display the PSComputerName from that specific code block
submitted by /u/waytoobublik
[link] [comments]
The post I want to display computer name from entered user name appeared first on How to Code .NET.