星空网 > 软件开发 > 操作系统

Windows批处理:自动部署常用软件(静默安装)

一、简介

  最近一直在测试使用域组策略自动部署软件,效果并不理想。首先,主机必须加入域才能让策略生效。其实是Windows Server 2012 R2只支持.msi格式的安装包,所以部署前需将软件重新封装;使用“已分配”选项,软件没有创建快捷方式,只能在“控制面板—程序”里面添加。

  静默安装又称为无人值守安装,软件以默认值自动进行安装。将软件包放在共享,编写批处理可批量自动安装网络上的软件,重装系统后一键装机!实现原理很简单,就是软件打包程序预留了安装参数,安装时可加上。当查不到或没预留静默安装参数时,只能手动点击下一步进行安装。查看安装参数与查看dos命令帮助相同:/? 。

 

二、配置

@echo offtitle Auto Installcolor 1F
::WinRARecho.start /wait \\192.168.1.100\Public\Software\WinRAR_x64.exe /sif %errorlevel%==0 (echo WinRAR x64 -- OK) else (echo WinRAR x64 -- error)
::Flash播放器echo.start /wait \\192.168.1.100\Public\Software\flashplayer_IE.exe /installif %errorlevel%==0 (echo Flash Player for IE -- OK) else (echo Flash Player for IE -- error)echo.start /wait \\192.168.1.100\Public\Software\flashplayer_nIE.exe /installif %errorlevel%==0 (echo Flash Player not for IE -- OK) else (echo Flash Player not for IE -- error)
::搜狗输入法echo.start /wait \\192.168.1.100\Public\Software\Sougoupinyin.exe /Sif %errorlevel%==0 (echo SougouInput -- OK) else (echo SougouInput -- error)
::Foxit Readerecho.start /wait \\192.168.1.100\Public\Software\FoxitReader.exe /VERYSILENTif %errorlevel%==0 (echo Foxit Reader -- OK) else (echo Foxit Reader -- error)
::AVG,没查到静默安装参数,需手动点击echo.start /wait \\192.168.1.100\Public\Software\avg.exeif %errorlevel%==0 (echo AVG Free -- OK) else (echo AVG Free -- error)
::原版Office 2007,尚未设置config.echo.start /wait \\192.168.1.100\Public\Software\Office2007\setup.exeif %errorlevel%==0 (echo Office Excel -- OK) else (echo Office Excel -- error),echo.start /wait \\192.168.1.100\Public\Software\Office2007\setup.exeif %errorlevel%==0 (echo Office PowerPoint -- OK) else (echo Office PowerPoint -- error)echo.start /wait \\192.168.1.100\Public\Software\Office2007\setup.exeif %errorlevel%==0 (echo Office Word -- OK) else (echo Office Word -- error)echo.pause

 

非原版Office 2007四合一

mkdir %systemdrive%\Office2007xcopy /s /q "\\192.168.41.251\Public\Software\Office 2007" "%systemdrive%\Office2007">%temp%\copy.tmpstart /wait %systemdrive%\Office2007\install.cmdif %errorlevel%==0 (echo Office2007 -- OK) else (echo Office2007 -- error)del %temp%\copy.tmp

 

Windows批处理:自动部署常用软件(静默安装)images/loading.gif' data-original="http://images2015.cnblogs.com/blog/779932/201509/779932-20150901154619169-1804226268.png" /> 

 

本文出自 “运维菜鸟.log” 博客,谢绝转载!







原标题:Windows批处理:自动部署常用软件(静默安装)

关键词:Windows

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

上亿消费者收紧支出后,巨头裁员,Shopee、TikTok使出浑身解数:https://www.kjdsnews.com/a/1660016.html
最新上线的GPT-4 Turbo,能给海外营销带来什么?:https://www.kjdsnews.com/a/1660017.html
不打了!Shein和Temu同时撤诉:https://www.kjdsnews.com/a/1660018.html
TikTok Shop东南亚再遇阻,马来西亚讨论监管事宜:https://www.kjdsnews.com/a/1660019.html
诈骗亚马逊70万美元!美国一犯罪团伙被起诉!:https://www.kjdsnews.com/a/1660020.html
亚马逊通用/中性品牌如何改成备案品牌?:https://www.kjdsnews.com/a/1660021.html
九月初新疆旅游服装搭配(新疆游玩必备衣服清单):https://www.vstour.cn/a/408257.html
黄果树瀑布景区景点 - 黄果树瀑布景区景点分布图:https://www.vstour.cn/a/408258.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流