Summary: Use Windows PowerShell to get your computer name.
How can I use Windows PowerShell to easily retrieve my computer name?
Use the environmental variable ComputerName:
$env:computername
Summary: Use Windows PowerShell to get your computer name.
How can I use Windows PowerShell to easily retrieve my computer name?
Use the environmental variable ComputerName:
$env:computername