Install.vbs 对应于 install.cmd,但增加了一些新功能;install.cmd 是 Application Compatibility Testing and Mitigation Guide for Windows XP Service Pack 2(Windows XP Service Pack 2 应用程序兼容性测试和缓解指南)“附录”中介绍的附带脚本之一。您可以从以下网址下载用来安装该指南及其关联脚本的 Windows Installer (.msi) 文件:
'****************************************************************************** 'install.vbs 'Author: Peter Costantini, the Microsoft Scripting Guys 'Date: 9/1/04 'Must be deployed to a client and launched remotely by scenario1.vbs. 'Assumes that runonce.vbs is in same directory as script. 'Assumes that Windows XP Service Pack 2 setup program is on a remote server 'and runonce.vbs are in same directory as script. '1. Runs Service Pack 2 setup program from remote server to install ' Windows XP Service Pack 2. This could take one or two hours. '2. Configures the AutoAdmin and RunOnce registry settings necessary ' to run runonce.vbs. '3. Logs results to text file, <computername>-sp2-instlog.txt and copies ' the file back to admin workstation. '4. Forces a reboot of the local machine so that the AutoAdmin and RunOnce ' registry settings take effect. '******************************************************************************