A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » General Discussions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Startup Script hangs



 
 
Thread Tools Display Modes
  #1  
Old February 22nd, 2010, 03:11 PM posted to microsoft.public.office.misc
Markus Barter
external usenet poster
 
Posts: 6
Default Startup Script hangs

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\Update s\Office2007Enterprise.MSP"
set LogLocation="\\servershare\Office\Office2007\Logs"

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

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

eployOffice
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 ?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.