用脚本批量部署软件

cmd:
解除powershell 脚本执行权限
powershell -noprofile Set-ExecutionPolicy Unrestricted

powershell 下载文件 执行文件
$client = new-object System.Net.WebClient
$client.DownloadFile('\\DW-PC\Users\sd\xx.msi', 'D:\1.msi')
D:\1.msi /q

部署到域中执行

posted @ 2017-07-19 12:43  webzom  阅读(127)  评论(0)    收藏  举报