Re: Startup Scripts vs Software Installation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Meinolf - does this mean that IT pros use startup scripts sparingly
because it is redundant to run a script every time a machine starts (because
for software installation it is only needed once). Unless you are sure that
all computers in the OU have run the startup script once, you presumably have
to leave it in place.

Tad

"Meinolf Weber" wrote:

Hello Tadwick,

A startup script run's always during the startup of the machine, that's for
it is made. You can implement a check for existing folder/regkeys/files etc.
but it will always run during startup.

If you deploy software with software installation there will be also a small
check during gpo processing but that's all.

During GPO processing, the Group Policy Software installation CSE queries
the directory for available assigned PackageRegistration objects for applied
GPOs that have changed or are new. Any packages found are compared to those
already downloaded onto the client computer - the client computer records
received packages in the registry and caches .aas files. Any new or changed
packages are processed. The corresponding .aas file is read from the Sysvol
folder and then cached in %systemroot%\appmgmt.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

In an earlier thread I noted the challenges of using GPO Software
Installation to install packages for the Office 2003 Primary Interop
Assemblies (PIAs). I have been experimenting with startup scripts as
an alternative to installing this and other software.

One thing I'm not clear on is whether the startup script is supposed
to run each time the computer is started or only the first time it
finds the GPO. I have logic built into my script (similar to that
given below) so it doesn't reinstall the software each time even if
the script is run on each startup; however, I am surprised that the
script appears to be run each time (as indicated by a dialog "Running
Startup Scripts") so perhaps someone could kindly explain if this is
by design or needs refining on my part.

Thanks, Tad

REM***********************************************

setlocal
set ProductName=ACME Product
set DeployServer=\\server\share
set LogLocation=\\server\share
IF NOT "%ProgramFiles(x86)%"=="" SET WOW6432NODE=WOW6432NODE\

reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\%WOW6432NODE%Microsoft\Windows\CurrentVer
sion\Uninstall\%ProductName%" if %errorlevel%==1 (goto Deploy) else
(goto End)

REM If 1 returned, the product was not found. Run setup here.
:Deploy
start /wait %DeployServer%\ACME.exe
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\ACME_%computername%.txt
REM If 0 or other was returned, the product was found or another error
occurred. Do nothing.
:End
Endlocal




.



Relevant Pages

  • Re: how to control init startup order
    ... EricT wrote: ... > software installation) the order is messed up again. ... I'd be much happier if you told us what the problem was instead of why your ... startup scripts can be run in ...
    (alt.os.linux.suse)
  • Re: remote installation
    ... Software Installation with an msi ... Startup scripts ... Third party software - many, many products, e.g. http://blogs.airdesk.com/airdesk/2008/07/software_distribution_and_alti.html ...
    (microsoft.public.windows.server.active_directory)
  • Re: Help!! Have I been attacked/compromised????
    ... check all startup scripts for trojans ran from there on startup ... >> OUCH!!! ... >> I have not installed any new packages for a long time. ... > partly for forensics' sake, ...
    (comp.os.linux.security)