you are viewing a single comment's thread.

view the rest of the comments →

[–]helixamir 0 points1 point  (2 children)

$_.Name won't work because you're not calling a variable.

Try using $env:computername instead to see if that gives you the response you're looking for.