Search




hits.Login
purpleender
41772
Newmarket
Bumder
Jock
Gonna get High till the day I die! Reality is an illusion that occurs due to lack of resin.
PowerShell - Get Remote Computer Name
Windows PowerShell - Get Remote Computer Name |
![]() |
To get a remote Computer Name 'kinda pointless as you have to know the name before you can query it - but what the hell' -
Replace "COMPUTERNAME" with the name of the computer:
$CS = Gwmi Win32_ComputerSystem -Comp "COMPUTERNAME"
"Machine Name: " + $CS.Name



