Discussion:
Group Policy Startup Script Issue (Trend OfficeScan) - Autopcc
(too old to reply)
Sbrown95
2007-11-06 22:51:39 UTC
Permalink
First I'd like to say hi to all and thank you for reading my post. I
know we all get busy sometimes and we (especially me) get too involved
with our own issues to help others. I appreciate EVERYONE for their
participation in the IT community. Now here goes...

I know some of you out there have seen this:

Desired Outcome:
Trend OfficeScan client to be installed via the Autopcc.exe located in
a startup script(Startup - not login) due to my restricted user
environment. It needs to be Autopcc, not a custom package, because i
need the AutoPcc to install the client if not present and perform a
component update each time a machine is rebooted after that. This
should be simple. Right?

My Problem:
When I place the AutoPcc.exe to be run in a startup script, the
script, and all applications accociated terminate prematurely. I
believe it has to do with the fact that AutoPcc.exe calls other
executables to be run and autopcc itself terminates. I'm not a
scripter and have little experience with writing custom scritps. I
have tried simple scripts like:
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Set objShell = CreateObject("WScript.Shell")
Set objScriptExec = objShell.Exec("\\ctrendsrv\ofcscan
\autoopcc.exe.exe")
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

This script will start autopcc, then terminate. If i set a delay in
the script like:

````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Do While (objScriptExec.Status = 0)
WScript.Sleep 1000 'msec
Loop
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
the prescan, and installation will begin(meaning this is not a
permissions issue), but they will close once the delay is timed out.
I cannot set a long delay on a script that runs everytime a machine is
started for obvious reasons.

The only support i get from Trend is to launch AutoPcc using "Run as"
in a "login" script. Due to security policies in place, I cannot do
this.

Can anyone out there help me with this?? Thanks to all!!
Luke Robertson
2007-11-08 04:17:54 UTC
Permalink
Do you have to run it as a vbscript, or could you try using a batch file?
I use a shutdown batch file script to stop services when a server is
rebooted, so I'm sure batch files are supported.
if you use the 'start /wait' command in a batch file, it will keep that
process alive until it has completed running.

I'm interested to hear more about why you won't use the login script. I'm
always keen to hear of better ways to do things.
Post by Sbrown95
First I'd like to say hi to all and thank you for reading my post. I
know we all get busy sometimes and we (especially me) get too involved
with our own issues to help others. I appreciate EVERYONE for their
participation in the IT community. Now here goes...
Trend OfficeScan client to be installed via the Autopcc.exe located in
a startup script(Startup - not login) due to my restricted user
environment. It needs to be Autopcc, not a custom package, because i
need the AutoPcc to install the client if not present and perform a
component update each time a machine is rebooted after that. This
should be simple. Right?
When I place the AutoPcc.exe to be run in a startup script, the
script, and all applications accociated terminate prematurely. I
believe it has to do with the fact that AutoPcc.exe calls other
executables to be run and autopcc itself terminates. I'm not a
scripter and have little experience with writing custom scritps. I
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Set objShell = CreateObject("WScript.Shell")
Set objScriptExec = objShell.Exec("\\ctrendsrv\ofcscan
\autoopcc.exe.exe")
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
This script will start autopcc, then terminate. If i set a delay in
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Do While (objScriptExec.Status = 0)
WScript.Sleep 1000 'msec
Loop
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
the prescan, and installation will begin(meaning this is not a
permissions issue), but they will close once the delay is timed out.
I cannot set a long delay on a script that runs everytime a machine is
started for obvious reasons.
The only support i get from Trend is to launch AutoPcc using "Run as"
in a "login" script. Due to security policies in place, I cannot do
this.
Can anyone out there help me with this?? Thanks to all!!
Sbrown95
2007-11-08 18:45:53 UTC
Permalink
Post by Luke Robertson
Do you have to run it as a vbscript, or could you try using a batch file?
I use a shutdown batch file script to stop services when a server is
rebooted, so I'm sure batch files are supported.
if you use the 'start /wait' command in a batch file, it will keep that
process alive until it has completed running.
I'm interested to hear more about why you won't use the login script. I'm
always keen to hear of better ways to do things.
Post by Sbrown95
First I'd like to say hi to all and thank you for reading my post. I
know we all get busy sometimes and we (especially me) get too involved
with our own issues to help others. I appreciate EVERYONE for their
participation in the IT community. Now here goes...
Trend OfficeScan client to be installed via the Autopcc.exe located in
a startup script(Startup - not login) due to my restricted user
environment. It needs to be Autopcc, not a custom package, because i
need the AutoPcc to install the client if not present and perform a
component update each time a machine is rebooted after that. This
should be simple. Right?
When I place the AutoPcc.exe to be run in a startup script, the
script, and all applications accociated terminate prematurely. I
believe it has to do with the fact that AutoPcc.exe calls other
executables to be run and autopcc itself terminates. I'm not a
scripter and have little experience with writing custom scritps. I
```````````````````````````````````````````````````````````````````````````�`````````````````````````````````````````````````````````
Set objShell = CreateObject("WScript.Shell")
Set objScriptExec = objShell.Exec("\\ctrendsrv\ofcscan
\autoopcc.exe.exe")
```````````````````````````````````````````````````````````````````````````�`````````````````````````````````````````````````````````
This script will start autopcc, then terminate. If i set a delay in
```````````````````````````````````````````````````````````````````````````�`````````````````````````````````````````````````````````
Do While (objScriptExec.Status = 0)
WScript.Sleep 1000 'msec
Loop
```````````````````````````````````````````````````````````````````````````�`````````````````````````````````````````````````````````
the prescan, and installation will begin(meaning this is not a
permissions issue), but they will close once the delay is timed out.
I cannot set a long delay on a script that runs everytime a machine is
started for obvious reasons.
The only support i get from Trend is to launch AutoPcc using "Run as"
in a "login" script. Due to security policies in place, I cannot do
this.
Can anyone out there help me with this?? Thanks to all!!- Hide quoted text -
- Show quoted text -
Thank you for the reply. I have tried both methods. The problem is
the installation for Trend via Autopcc.exe calls "install.exe" and
then autopcc.exe stops. Start /wait will wait for autopcc, then the
script will terminate along with any other apps running - killing the
spawned install.exe. Only other method i could come up with is
directly calling the install.exe that autopcc calls, but then i would
have to compile the script to find whether or not trend is installed,
if not call install.exe, if so then run autoppc(for update of
components). Autopcc, according to Trend Micro - is suppose to
successfully do all fo this for you in one executable, but they do not
take into account a limited priveleged environment.

Any more ideas? Thanks again for the support.
Luke Robertson
2007-11-09 01:12:50 UTC
Permalink
Unfortunately I don't know much about the inner workings of GP startup
scripts.
I have used this many times in a standard login script, and it always works.
Is there any way that you'd be able to do it that way?

If you want a script to check if Trend is installed, you could use a batch
file to see if a file in the trend folder exists. Try something like this:



:START
@ECHO OFF


:CHECK
IF EXIST C:\Trend Folder\some file.txt GOTO END


:INSTALL
\\servername\share\autopcc.exe
ECHO Trend has been installed


:END
ECHO Script Complete
Post by Luke Robertson
Do you have to run it as a vbscript, or could you try using a batch file?
I use a shutdown batch file script to stop services when a server is
rebooted, so I'm sure batch files are supported.
if you use the 'start /wait' command in a batch file, it will keep that
process alive until it has completed running.
I'm interested to hear more about why you won't use the login script. I'm
always keen to hear of better ways to do things.
Post by Sbrown95
First I'd like to say hi to all and thank you for reading my post. I
know we all get busy sometimes and we (especially me) get too involved
with our own issues to help others. I appreciate EVERYONE for their
participation in the IT community. Now here goes...
Trend OfficeScan client to be installed via the Autopcc.exe located in
a startup script(Startup - not login) due to my restricted user
environment. It needs to be Autopcc, not a custom package, because i
need the AutoPcc to install the client if not present and perform a
component update each time a machine is rebooted after that. This
should be simple. Right?
When I place the AutoPcc.exe to be run in a startup script, the
script, and all applications accociated terminate prematurely. I
believe it has to do with the fact that AutoPcc.exe calls other
executables to be run and autopcc itself terminates. I'm not a
scripter and have little experience with writing custom scritps. I
```````````````````````````````````````````````````````````````````````````­`````````````````````````````````````````````````````````
Set objShell = CreateObject("WScript.Shell")
Set objScriptExec = objShell.Exec("\\ctrendsrv\ofcscan
\autoopcc.exe.exe")
```````````````````````````````````````````````````````````````````````````­`````````````````````````````````````````````````````````
This script will start autopcc, then terminate. If i set a delay in
```````````````````````````````````````````````````````````````````````````­`````````````````````````````````````````````````````````
Do While (objScriptExec.Status = 0)
WScript.Sleep 1000 'msec
Loop
```````````````````````````````````````````````````````````````````````````­`````````````````````````````````````````````````````````
the prescan, and installation will begin(meaning this is not a
permissions issue), but they will close once the delay is timed out.
I cannot set a long delay on a script that runs everytime a machine is
started for obvious reasons.
The only support i get from Trend is to launch AutoPcc using "Run as"
in a "login" script. Due to security policies in place, I cannot do
this.
Can anyone out there help me with this?? Thanks to all!!- Hide quoted text -
- Show quoted text -
Thank you for the reply. I have tried both methods. The problem is
the installation for Trend via Autopcc.exe calls "install.exe" and
then autopcc.exe stops. Start /wait will wait for autopcc, then the
script will terminate along with any other apps running - killing the
spawned install.exe. Only other method i could come up with is
directly calling the install.exe that autopcc calls, but then i would
have to compile the script to find whether or not trend is installed,
if not call install.exe, if so then run autoppc(for update of
components). Autopcc, according to Trend Micro - is suppose to
successfully do all fo this for you in one executable, but they do not
take into account a limited priveleged environment.

Any more ideas? Thanks again for the support.

Loading...