Deploy custom Office 2007 using GPO or command prompt

Copy office 2007 DVD content into \\servername\software\office12

go to the folder containing office 2007 from command prompt

type setup.exe /admin

Click ok.


Provide installation location such as



Add according to your need. You don’t need to mention the application which you don’t want to install.


type or paste product key, Accept EULA, display level none, check suppress, check none


Select office application you need, select not available on application you don’t want to install.  you must select office tools


Now click on file and save this file as custom.msp in \\servername\software\office12 folder

Create bat file, say office2007.bat write in one line

\\servername\software\office12\setup.exe /adminfile \\servername\software\office12\custom.msp

Go to GPO management in your server, expand domain, right click group policy object

Create new GPO and name it as you want say office 2007 custom

Expand group policy object, right click on office 2007 custom and Edit


double click on startup


click Add, browse and paste office2007.bat  image

press ok. Once GP refresh as set by your GPO refresh policy, it will install office 2007.

Command prompt deployment

Now open a notepad and write list of netbios name of xp machine in one column and save the file as desktop.txt

I created a bat file named deploy.bat containing the following command

@echo off

\\servername\software\office12\setup.exe /adminfile \\servername\software\office12\custom.msp

save desktop.txt and deploy.bat file in a C:\ Now go to that directory from command prompt

Type and wait until copied

FOR /F %i in (c:\desktop.txt) DO COPY Deploy.bat \\%i\c$ /Y

Type again

FOR /F %i in (c:\desktop.txt) DO AT \\%i 17:00 c:\Deploy.bat

Office 2007 will install in set time as 1700.

About Raihan Al-Beruni

My Name is Raihan Al-Beruni. I am working as an Infrastructure Architect in Data Center Technologies in Perth, Western Australia. I have been working on Microsoft technologies for more than 15 years. Other than Microsoft technologies I also work on Citrix validated solution and VMware data center virtualization technologies. I have a Masters degree in E-Commerce. I am certified in Microsoft, VMware, ITIL and EMC. My core focus is on cloud technologies. In my blog I share my knowledge and experience to enrich information technology community as a whole. I hope my contribution through this blog will help someone who wants more information on data center technologies.
Gallery | This entry was posted in Windows Server and tagged , . Bookmark the permalink.

4 Responses to Deploy custom Office 2007 using GPO or command prompt

  1. Oscar says:

    Hi, I stay try to do the first option (GPO) but only the installation is successfully when log in with an administrator rights account.

    Can you help me?


  2. Ozk4r says:

    Raihan, How can i do it?



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s