Startup Script hangs

M

Markus Barter

Hello Group,

i would like to deploy office 2007 via startup script in gpo

here is my script:

setlocal
set ProductName=Enterprise
set DeployServer="\\servershare\Office\Office2007"
set
ConfigFile="\\servershare\Office\Office2007\Updates\Office2007Enterprise.MSP"
set LogLocation="\\servershare\Office\Office2007\Logs"

IF NOT "%ProgramFiles(x86)%"="" then set "WOW6432NODE"="WOW6432NODE\"

REG QUERY
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%Productname%
if %errorlevel%==1 goto DeployOffice
else goto End

:DeployOffice
start /wait %DeployServer%\setup.exe /adminfile %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\%computername%.txt

:End
Endlocal

I saved the script in my policy folder as office2007.vbs

the script hangs with following error:
code: 800A0401
Compile error in Microsoft vbscript (the script position after REG QUERY HKLM)
(or after Start /)

what is the reason ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top