如何让域用户一登录就运行脚本去卸载已安装的OFFICE 2003软件???我想用组策略推送OFFICE2007但推了进去OUTLOOK不能用了,我已知道是OUTLOOK 2003和2007不能共存才导致的,所以现在想先登录就用脚本去卸在原来的OFFICE2003 之后在推送OFFICE 2007。请问这脚本如何编写?

回答:根据您的描述,我理解为您想知道如何编写域用户一登陆就卸载Office 2003的脚本。一台机器上是仅允许一个Outlook版本运行。如果您是想在原来Office 2003的机器上使用Office 2007, 您有没有试过使用直接升级到Office 2007呢?

下面相关的文章供您参考:

Use Group Policy Software Installation to deploy the 2007 Office system
http://technet.microsoft.com/en-us/library/cc179214(office.12).aspx

经过进一步的研究,下面的信息供您参考:

如果您想直接升级到Office 2007并且要删除以前的Office 2003的话,您可以使用OCT和Office 2007 system Administrative Template files 来进行。

2007 Office system Administrative Template files (ADM, ADMX, ADML) and Office Customization Tool version 2.0
http://www.microsoft.com/downloads/en/details.aspx?familyid=92d8519a-e143-4aee-8f7a-e4bbaeba13e7&displaylang=en

您在应用了Template之后,在OCT中应该有一个选项是选择是不是需要删除以前的版本。

这里是一篇关于Office 2010的文章(Office 2007也是类似的)或许会有所帮助,“Customize your setup”部分讲到了“Remove previous installations”选项:

How to deploy office 2010 using GPO and OCT
http://community.spiceworks.com/how_to/show/1503

供您参考,您也可以通过domain logon script来升级软件,对于具体的脚本如何编写,这个可能还得需要开发工程师帮忙,下面的文章供您参考:

1. Creating logon scripts
http://technet.microsoft.com/en-us/library/cc758918(WS.10).aspx

2. Use Group Policy to assign computer startup scripts for 2007 Office deployment
http://technet.microsoft.com/en-us/library/cc179134(office.12).aspx

3. Deploy Office 2010 by using Group Policy computer startup scripts
http://technet.microsoft.com/en-us/library/ff602181.aspx

4. How to Run a Domain Logon Script in the Foreground with the Start.exe Command-Line Tool
http://support.microsoft.com/kb/265016#appliesto

5. How to Hide the Logon Script Dialog Box on a Windows Client
http://support.microsoft.com/kb/176197


Sophie  微软全球技术支持中心

组策略卸载Office的相关文章请参考