131

Powershell-查询主机名及IP地址-听闻-51CTO博客

 6 years ago
source link: http://blog.51cto.com/wenzhongxiang/2068804
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Dos查询IP地址及主机名信息:1.ipconfig | find "IPv4"2.hostname3.systeminfo |find "主机名:"默认很多人总是习惯用DOS命令查询,其实Powershell实现起来也是很简单的。如下:Powershell查询IP地址及主机名信息:1.foreach($ip

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK