Jump to content

Script to deploy O2k7 not working.. or psexec?


Recommended Posts

Posted

gah. help! this why doesn't this work?! :realmad:

The computer returns a 1, stating it's not installed and attempts to run setup.exe but fails.

It's throwing errors at the "setup.exe /adminfile blah.msp" part

If i use either it says that both either /config and /adminfile is an invalid switch?!

Invalid switch - /adminfile

setlocal

REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************

REM Get ProductName from the Office product's core Setup.xml file.
set ProductName=Enterprise

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer="\\Software\Installation Software\Office\Office 2007 Enterprise\Enterprise.WW"

REM Set ConfigFile to the configuration file to be used for deployment REM (required)
set ConfigFile="\\Software\Installation Software\Office\Office 2007 Enterprise\Enterprise.WW\config.xml"

REM Set LogLocation to a central directory to collect log files.
set LogLocation="\\Software\Installation Software\Office\Office 2007 Enterprise\O2k7Log"

REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************

IF NOT "%ProgramFiles(x86)%"=="" SET WOW6432NODE=WOW6432NODE\

reg query HKEY_LOCAL_MACHINE\SOFTWARE\%WOW6432NODE%Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%

if %errorlevel%==1 (goto DeployOffice) else (goto End)

REM If 1 returned, the product was not found. Run setup here.
:DeployOffice

REM start /wait %DeployServer%\setup.exe /config %ConfigFile%

start /wait %DeployServer%\setup.exe /adminfile %DeployServer%\ok27displaybasic.MSP"

echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt

REM If 1 returned - Product not found. Attempted to run setup.
REM If 0 or other returned - Product was found or another error occurred. Do nothing.
:End

Endlocal

and possibly dumb question.. :blushing: how come i can't use PsExec to push this out as it doesn't seem to work? even tried throwing the setup.exe command in a BAT and tried to run it with PsExec but it just seemed to hang on the computer.

psexec \\computer -u domain/Admin -p Password "\\Software\Installation Software\Office\Office 2007 Enterprise\setup.exe" /adminfile "\\Software\Installation Software\Office\Office 2007 Enterprise\o2kdisplaybasic.MSP"


Posted (edited)

psexec open console [ as system, run set to see what account is runing from]

u need to run this cmd under exist user

use telnet

GL

Edited by aviv00
Posted (edited)

telnet's not gonna work. I need to deploy this to some 400 clients.. :unsure:

I figured part of it out.. it had to do with the quotes but now it's saying the install is invalid. Weird bc if you manually click on setup.exe it runs fine, but running from the script it doesnt... i'm thinking it may be the quotes again..

still troubleshooting.. :no:

psexec \\computer -u domain/Admin -p Password "\\Software\Installation Software\Office\Office 2007 Enterprise\setup.exe /adminfile" "\\Software\Installation Software\Office\Office 2007 Enterprise\o2kdisplaybasic.MSP"

Edited by paper

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...