一些powsershell脚本

1:powershell下载jdk
powershell (new-object System.Net.WebClient).DownloadFile( 'https://dl.softmgr.qq.com/original/Development/jdk-8u191-windows-x64-8.0.1910.12.exe','c:\j.exe')

2:windows上静默安装jdk
c:\j.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"

注意:上面的地址根据实际情况更换。在windows server 2012上测试通过

标签: none

仅有一条评论

  1. d;ls d;ls

    12

添加新评论