I need your help.
I have the username or ip address and I need the computer name. How can I get the computer name with this information. Please help me.
I had tried this, but it was not successful:
Invoke-Command -ComputerName x.x.x.x -ScriptBlock {$env:COMPUTERNAME}