Page 1 of 1 1
Topic Options
#39003 - 2003-04-09 02:01 PM Installation on woprkstation
Anonymous
Unregistered


Hello everyone.

I am writing a script with the purpose of installing the EPO agent for my workstations. I wrote the script but the only thing that i am not familiar with is that I need an admin account to do it. All the machines are locked down. How would I be able to specify an admin account to install the software, or what's the best way of doing it.

What my script does is it verifies to see if a flag file is set on the computer if not it writes to the registry in the runonce key. and on the next reboot it installs the software if the flag file is not there.

Here is a copy of the code.

;---------- Script to Install Mcafee EPO Agent
;----------------------------------------------------------------------------------------------------------------
;---------- Variable Declaration Section
;----------------------------------------------------------------------------------------------------------------

$Errfile = ("%windir%" + "\" + "epoerr.flg")
$Flgfile = ("%windir%" + "\" + "epoagnt.flg")
$ROKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
;----------------------------------------------------------------------------------------------------------------

If exist ($Flgfile)

GOTO THEEND

Endif

;drop the script for the epo Agent setup.exe in the runonce registry key and write the details to a log file
:SETVALUE
;
WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","EPOAgent", "\\s3-ott-soft\dfsroot\Soft\VirusScan\ePOAgent_251\epo251.exe","REG_SZ")
$return = @error
;? $return
Select
Case @error = 0
;? "Value written to registry"
OPEN(2,$Flgfile,5)
Writeline(2,"EPO Installed" + " " + @date + " " + @time)
CLOSE(2)

Case 1
;? "Registry Function Failed"
OPEN(2,$Errfile,5)
Writeline(2,"EPO NOT Installed -- FAILED" + " " + @date + " " + @time + " " + $return + " : code")
CLOSE(2)
GOTO THEEND
EndSelect


:THEEND
EXIT

Top
#39004 - 2003-04-09 02:04 PM Re: Installation on woprkstation
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
IF it runs silently, push the prog to the remote PC (in a temp folder) and use RemoteExec() to run it.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#39005 - 2003-04-09 02:30 PM Re: Installation on woprkstation
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
How many workstations are you working with? You know you can "push" this from the console?

Also, what OS(es) are we working with? Are these 9x/NT/2k/XP?

Kent

[ 09. April 2003, 14:35: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#39006 - 2003-04-09 02:53 PM Re: Installation on woprkstation
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Also,

Did you check the NAI Support Document site?

Document Search -
https://knowledgemap.nai.com/phpclient/MainPage.aspx

[URL=https://knowledgemap.nai.com/phpclient/viewDocument.aspx?externalID=KB_nai24655&sliceID=&docID=KC.KB_nai24655&url=kb/kb_nai24655.xml&dialogID=5679095&docType=DOC_KnowledgeBase &userType=3&iterationID=1&sessionID=Anonymous|161652596&userID=&docName=Solution%20ID%20nai24655%20-%20Unable%20to%20deployePO%20agent&sourceKmap=&viewFrom=Main]Unable to deploy ePO agent[/URL]

Do you have a Grant Number with NAI? They have a pretty good Support line that can answer most of your questions too.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#39007 - 2003-04-09 03:19 PM Re: Installation on woprkstation
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Willo, I pushed out the ePOAgent through my login script as well. You're best bet in dealing with admin privilage is to create a service account with domain admin privilage. Then you custom build your installer to install using the service account if the local user doesn't have the rights to do it themselves.
Top
#39008 - 2003-04-09 03:23 PM Re: Installation on woprkstation
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please take a look at the FAQ Forum, e.g. Installing an Application as an Admin
_________________________
There are two types of vessels, submarines and targets.

Top
#39009 - 2003-04-09 05:48 PM Re: Installation on woprkstation
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Willo,

I think this is the easiest way to do this..

If you have a list of computers (using ePO 2.5.1):

(1) Right-click on the node you want to add the computers to
(2) Choose "All Tasks"/"Import Computer..."

This starts a Wizard..

Click the Continue Button

I took a list I created in Excel and converted this to a CSV.. Change the file type from Text Import File (*.TXT) to All files (*.*).. Browse to the CSV File. When Ready, click the Open Button.

Caveat, you will need to remove the first row if this is a "column header"..

Voila! You have imported your computer list.. For example, I just did a test with this and imported 271 Computers into a "Test" Node in about 2 minutes!

Now, right-click on the node and choose "Send Agent Install"

Run with the defaults and you should be set..

HTH,

Kent

[ 09. April 2003, 17:57: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.055 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org