#39003 - 2003-04-09 02:01 PM
Installation on woprkstation
|
Anonymous
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
   
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.
|
|
Top
|
|
|
|
#39005 - 2003-04-09 02:30 PM
Re: Installation on woprkstation
|
Kdyer
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 ]
|
|
Top
|
|
|
|
#39006 - 2003-04-09 02:53 PM
Re: Installation on woprkstation
|
Kdyer
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
|
|
Top
|
|
|
|
#39009 - 2003-04-09 05:48 PM
Re: Installation on woprkstation
|
Kdyer
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 ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1046 anonymous users online.
|
|
|