powershell常用

对于powershell,比较强大的shell,可以直接调用.net进行下载等等

get-command|where-object{$_.name -like 'write*'}

 get-wmiobject

getitem

environment

$a=""

$a|get-member -membertype property

使用.net 进行端口测试

$b=new-object net.sockets.tcpclient

$b.connect($host,$port)

等待连接成功与否

进行文件下载

webclient

downloadfile

原文地址:https://www.cnblogs.com/hualiu0/p/4896679.html