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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.