Link to home
Start Free TrialLog in
Avatar of piemckay
piemckay

asked on

Deploy Office 2007 using GPO / Script / MSP

Hi,

I am trying to deploy Office 2007 to our network computers using Group Policy. I have looked down to route of using MSI files and changing the xml config file but that doesn't seem to suit the custom install I need (installing pro plus but taking out publisher and infopath).

I have created an MSP file using setup.exe /admin and have copied the installation files to a file server. I am using the attached vbscript at startup to install office 2007 (startup script in GPO). The installation works and fires up at the machine startup, however it does not wait until it is complete before allowing the user to log in. This could cause us serious problems as it is removing 2003 as well and the user could interfere with that.

Is there a way of stopping the user from logging in before the installtion is complete? Also is there a way of customising a message to the user to let them know why the log in is delayed? I have managed to get it to work as a shutdown script , but I can imagine a lot of complaints from laptop users being delayed from leaving work on time!

I am not very good with vbscripting so I will need guidance for code changes.
Thanks in advance.
Set wshShell = WScript.CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set colSoftware = objWMIService.ExecQuery ("Select * from Win32_Product")
For Each objSoftware in colSoftware
  If objSoftware.Caption = "Microsoft Office Professional Plus 2007" Then
    OfficeInstalled = True
    Exit For
  End If
Next
If OfficeInstalled <> True Then
  Set oExec = wshShell.Exec ("\\server\apps\Office2007\setup.exe /adminfile \\server\apps\office2007\office2007_pro.msp")
  Do While oExec.Status = 0
    WScript.Sleep 100
  Loop
End If

Open in new window

Avatar of Zuhir Elgmati
Zuhir Elgmati
Flag of Libya image

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

Deploying Office 2007 with Group Policy Startup Scripts
http://blog.stealthpuppy.com/deployment/deploying-office-2007-with-group-policy-startup-scripts
Avatar of piemckay
piemckay

ASKER

Hi,

Thanks for your input. I have already used these two locations for advise on the deployment. Using Group Policy Software Installation it is too difficult to get the customisation of the office version. We will have a number of different types of installs so I can't create a different shre for each one.

The script I am using was taken from the second link you posted. It does work, but as I said it allows the user to log in while the install takes place, which could cause issues.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Zuhir Elgmati
Zuhir Elgmati
Flag of Libya image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I did have a brief look. I'll give that script a go and see what happens.

Thanks
good luck piemckay
Hi,

This script was better because it didn't reboot the computer after install. However it still allows the user to log in without a message to tell them to wait.

Any good with sbscript?

Cheers
vbscript that was supposed to be.
Thanks for your pointers. I still need to do some modification to the script, but no one seems that have responded on that score.

Cheers.