Error when running Office 365 install via batch

Hi All, Ive got a batch file which runs at startup. It Assists in our migration of Office 2010 to 365 ProPlus (Locally installed).  When I run the batch it says /Config is an invalid switch and  'Setup Executed and ended with error Code 0', could someone be so kind as it look over the script and tell me that Im not going slowly mental. :) BTW Im far from a script expert so there may be mistakes in there!

setlocal

REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************
 
REM Get ProductName  
set "ProductName=O365ProPlusRetail - en-us"
 
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\catfish.com\netlogon\Office\Office15
 
REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\catfish.com\netlogon\Office\Office15\config.xml
 
REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\catfish.com\netlogon\Office\Office15\InstallLogFiles
 
 
REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************

REM Checks if office 365 is already installed, if so it skips to the end.

if exist "C:\Program Files\Microsoft Office 15\root\office15\OUTLOOK.EXE" goto End
 
REM Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup executed and ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt

REM This cscript called offscrub and removes all office 2010 programs due to ALL switch

cscript "\\catfish.com\netlogon\Office\OffScrub10.vbs" /ALL
 
REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End
 
Endlocal
Jonathan MckeeSenior IT AnalystAsked:
Who is Participating?
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.

Vasil Michev (MVP)Commented:
I'm not sure if it accepts shortened notations, the full switch should be /Configure.

Lots of info is available on the internet, try for example this guide: http://lyncme.co.uk/office365/office-365-click-to-run-configuration-and-testing-part-1-2/
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
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 7

From novice to tech pro — start learning today.

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.