一些静默化参数和脚本
in 代码片段日常技巧 with 1 comment

一些静默化参数和脚本

in 代码片段日常技巧 with 1 comment

MDT项目所需,整理了一些静默化安装参数
(其中的微信和YY助手都是通过了自己封装的包)

:有道词典
YoudaoDict.exe /S /D=C:\Youdao\Dict
:Office2010
setup /adminfile updates\51talk.msp
:51Talk-AC
51talk-ac.exe /Silentinstall
:Adobe Reader
msiexec /i AcroRead.msi /quiet
:企业QQ
HRTX1.89.2036.201.exe /S
:Chrome
msiexec /i googlechrome64_59.0.3071.115.msi /quiet
:Flash Player ActiveX
msiexec /i install_flash_player_26_active_x.msi /quiet
:Flash Player PPAPI
msiexec /i install_flash_player_26_ppapi.msi /quiet
:Winrar
winrar-x64-540scp.exe /s
:.net 4.6.2
NDP462-KB3151800-x86-x64-AllOS-ENU.exe /quiet
:IE11
IE11-Windows6.1-x64-zh-cn.exe /quiet /update-no /forcerestart
:RTX
rtxclient2015formal.exe /S
:微信
WeChat_Install.exe
:赛门铁克
msiexec /i Sep64.msi /quiet
:YY伴侣
msiexec /i YYMixer.msi /quiet
:K-Lite_Codec_Pack_1324_Mega
K-Lite_Codec_Pack_1324_Mega.exe /verysilent
:Sogou Pinyin
sogou_pinyin_85d.exe /S
:sougou wubi
sogou_wubi_30a.exe /S

含Windows 7(专业版) / Windows 10 (专业版)/Office 2010 (64bit)/Office 2016(bit)KMS激活脚本:

弹窗+Autoit的处理方式:

start.au3

Break (0)
shellExecute ("active.bat")
WinWaitActive("Windows Script Host","成功地卸载了产品密钥。")
ControlClick("Windows Script Host","","确定")
WinWaitActive("Windows Script Host","成功地安装了产品密钥")
ControlClick("Windows Script Host","","确定")
WinWaitActive("Windows Script Host","密钥管理服务计算机名称成功地设置为 172.17.0.29。")
ControlClick("Windows Script Host","","确定")
WinWaitActive("Windows Script Host","成功地激活了产品。")
ControlClick("Windows Script Host","","确定")
Exit

active.bat

@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
slmgr.vbs -upk
ver | find "10.0.">nul && slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
ver | find "6.1.">nul && slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
slmgr.vbs -skms 172.17.0.29
slmgr.vbs -ato
cd “%ProgramFiles%\Microsoft Office\Office14“ || cd “%ProgramFiles%\Microsoft Office\Office16“
cscript ospp.vbs /sethst:172.17.0.29
cscript ospp.vbs /act

静默化处理方式1(添加了计划任务):

@echo off
cd "%SystemRoot%\System32"
cscript /nologo slmgr.vbs /upk
ver | find "10.0.">nul && cscript /nologo slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
ver | find "6.1.">nul && cscript /nologo slmgr.vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
cscript /nologo slmgr.vbs /skms 172.17.0.29
cscript /nologo slmgr.vbs /ato
cscript /nologo slmgr.vbs /dlv
cscript /nologo slmgr.vbs /dli
cscript /nologo slmgr.vbs /xpr
cd "%ProgramFiles%\Microsoft Office\Office16" || cd "%ProgramFiles%\Microsoft Office\Office14"
cscript ospp.vbs /sethst:172.17.0.29
cscript ospp.vbs /act
schtasks /create /tn "Active" /tr C:\Standard\Software\Common\active\active.exe /sc weekly /mo 20

如果以上的相对路径激活出现问题,请使用绝对路径:

@echo off
cd "%SystemRoot%\System32"
cscript /nologo slmgr.vbs /upk
ver | find "10.0.">nul && cscript /nologo slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
ver | find "6.1.">nul && cscript /nologo slmgr.vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
cscript /nologo slmgr.vbs /skms 172.17.0.29
cscript /nologo slmgr.vbs /ato
cscript /nologo slmgr.vbs /dlv
cscript /nologo slmgr.vbs /dli
cscript /nologo slmgr.vbs /xpr
cd "C:\Program Files\Microsoft Office\Office16" || cd "C:\Program Files\Microsoft Office\Office14"
cscript ospp.vbs /sethst:172.17.0.29
cscript ospp.vbs /act
schtasks /create /tn "Active" /tr C:\Standard\Software\Common\active\active.exe /sc weekly /mo 20

添加计算机属性的支持信息、VNC Server注册、RTX群组插件安装、添加无线的配置信息autoit脚本:

Break (0)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Manufacturer", "REG_SZ", "51Talk")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Model", "REG_SZ", "无忧英语")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Logo", "REG_SZ", "C:\\Windows\\System32\\oemlogo.bmp")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "SupportURL", "REG_SZ", "http://cnshhqhsd01.51talk.com:8080/")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "SupportHours", "REG_SZ", "周一-周日  10:00-22:00")
sleep(3000)
Run("C:\Program Files\RealVNC\VNC Server\vnclicensewiz.exe")
WinWaitActive("VNC Server - Licensing")
ControlClick("VNC Server - Licensing",""," Apply a license key you already possess")
ControlClick("VNC Server - Licensing","","Next >")
WinwaitActive("VNC Server - Licensing","Enter a license key in the box below:")
ControlSetText("VNC Server - Licensing","","Edit1","N5QKQ-QEVER-BUFNB-QZK5D-EMF9A")
ControlClick("VNC Server - Licensing","","Button7")
WinWaitActive("VNC Server - Licensing","You will be entitled to support and upgrades until 2020/5/11.")
ControlClick("VNC Server - Licensing","","Button7")
ControlClick("VNC Server - Licensing","","Button7")
ControlClick("VNC Server - Licensing","","Button10")
ControlClick("VNC Server - Licensing","","Finish")
sleep(3000)
shellExecute ("C:\Standard\Software\Common\rtxgroupplugin.rpi")
WinWaitActive("RTX客户端插件安装程序")
ControlClick("RTX客户端插件安装程序","","已阅读并安装")
WinWaitActive("RTX客户端插件安装程序")
ControlClick("RTX客户端插件安装程序","","完成")
sleep(3000)
shellExecute ("C:\Standard\Software\Common\Wireless\51talk-staff.bat")
Exit

--EOF--

Responses
  1. [...]https://wwww.lvmoo.com/660.love[...]

    Reply