powershell脚本获取当前计算机名

$computer=Get-WMIObject  Win32_ComputerSystem     $Cname = $computer.name 推荐一个学

$computer=Get-WMIObject  Win32_ComputerSystem    

$Cname = $computer.name

 

 

推荐一个学习基金知识的公众号:贫民的财富自由之路