Batch to remove Office 2003 Professional and install Office 2003 Standard

Hello,

I'm looking for the best way to uninstall Office 2003 Professional and instead, install Office 2003 Standard using a batch/script without having to log off/on the remote workstation.
I used the following manually on a workstation and it worked fine, question is how to combine that into 1 batch to execute the commands in the right order/interval and how can I execute the batch remotely via typing a command in my CMD with the name of the remote workstation.

1)
msiexec /x {9011040D-6000-11D3-8CFE-0150048383C9} /quiet
2)
net use e: \\server_name\Share\Office\Office_2003_Standard_With_SP3
3)
e:\STD11.MSI /quiet
iNc0gAsked:
Who is Participating?
 
johnb6767Commented:
Personally, I would force a reboot after the uninstall, in case there are any PendingFileRenameOperations, that need to be cleaned up.

If you REALLY want to do it.......

Get PSEXEC from the web
http://live.sysinternals.com/psexec.exe

Save it to a folder called C:\PSTools

Save the following as a batch file in C:\PSTools, named Office.Bat

Create a text file with all the PCNames you want to target, call it C:\PSTools\PCNames.TXT

From your machine, you need to be logged in as a user with Admin Level rights on the remote clients for this to work smoothly.....

Command is (from a cmd prompt on your machine)

psexec @C:\PSTools\PCNames.txt -c -d Office.bat

If your logged 0n user DOESNT have the rights, here's the command to inject the remote credentials....

psexec @C:\PSTools\PCNames.txt -u Domain\User -p Password -c -d Office.bat(change the domain\user\password accordingly)
@echo off
msiexec /x {9011040D-6000-11D3-8CFE-0150048383C9} /quiet
REM Just use the UNC Path instead of the Mapping.....
REM net use e: \\server_name\Share\Office\Office_2003_Standard_With_SP3
msiexec /i "\\server_name\Share\Office\Office_2003_Standard_With_SP3\STD11.MSI" /quiet

Open in new window

0
 
iNc0gAuthor Commented:
How do I use the method you suggested WITH the forced reboot and automate the whole process as much as possible (remotely speaking) ?

2nd, would this work if the end-user on the workstaion is logged off? I would need to msg all the users to log off so no office apps are opened on their workstations while using psexec.

Thanks for your help.
0
 
iNc0gAuthor Commented:
msiexec /x {9011040D-6000-11D3-8CFE-0150048383C9} /quiet
msiexec /i "\\server_name\Share\Office\Office_2003_Standard_With_SP3\STD11.MSI" /quiet

Won't there be a conflict running both commands? will it execute the installation only after the uninstallation has finished?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
johnb6767Commented:
Second command executtes after the first one is finished......

If the user is logged off, still should work fine. Might want to alert them of a planned reboot as maintenance.....
0
 
iNc0gAuthor Commented:
1) I cant see the progress bar when using the uninstall command so I dont really know when/if it ended.

2) How can I make it complete installation (to run all office from the computer) using the command?

Thanks.
0
 
johnb6767Commented:
1. No, you wont be able to do this remotely, but if you add the -i switch to the psexec command, it will be visible on the remote screen.....

2. You mean install it from a local source instead of the network?
0
 
iNc0gAuthor Commented:
2. I mean that it'll install the whole office package on the remote computer, if you choose Customize officeinstallation there's an option to select manually to "Run all from my computer"  so all the office components will be installed locally, options are: Complete install, Normal Install, On 1st use (installs the needed component when trying to use it).

I would like to tell msiexec to choose Complete installation w/o having to manually check it.
0
 
johnb6767Commented:
Custom Installation Wizard - Office 2003 Resource Kit - Microsoft ...
http://office.microsoft.com/en-us/ork2003/HA011401701033.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.