Page 1 of 1 1
Topic Options
#44703 - 2003-09-02 09:07 PM Implementing virus tools network-wide
Shaggydog Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
Hi.

Due to the problems we've had with the viruses around the company,I'm being asked to create a script that will copy a file from our server to a local machine, and then to run that file from the local machine.

Anythoughts?

Thanks for your help.
Shaggy

Top
#44704 - 2003-09-02 09:09 PM Re: Implementing virus tools network-wide
Shaggydog Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
I also would like to build an if statement around the entire function.

I'd like for the script to look to see if the file is already present in the dir. that would mean the script had already run it once, and would not need to again.

Thanks again

Top
#44705 - 2003-09-02 09:10 PM Re: Implementing virus tools network-wide
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
You could copy it in your logon script & then poke the name of the exe into the runonce key so it will run right after logon. Reboots might be a problem if this is necessary plus you need to set a flag somewhere so you will not instal the update twice.
_________________________
Jack

Top
#44706 - 2003-09-02 09:12 PM Re: Implementing virus tools network-wide
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
not sure what is so hard in this.
copy "serverlocation" "locallocation"
run "locallocation"
_________________________
!

download KiXnet

Top
#44707 - 2003-09-02 09:15 PM Re: Implementing virus tools network-wide
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4648
Loc: The Netherlands
You could copy a txt file or so along with the program file. Do a check if the txt file exists before copying the program file to avoid double copying.

If this is a virus canner or so you probably need your users to have admin privileges. If they donít have this you can use the taskscheduler UDF or (not desirable because of security issues) use su.

Do a search on the taskschedular UDF or su and you'll find what you need.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#44708 - 2003-09-02 09:17 PM Re: Implementing virus tools network-wide
Kdyer Offline
KiX Supporter
*****

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

You could copy a txt file or so along with the program file. Do a check if the txt file exists before copying the program file to avoid double copying.

Why? Why not look for a Reg Key or value?

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

Top
#44709 - 2003-09-02 09:18 PM Re: Implementing virus tools network-wide
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
if you want to check file, these will be enough:
-filename
-filetime same
-file size same

checking these you can verify, you have already done the job.
if you want to be sure, you need to check from registry that the update has done.

could I ask what AV you use?
_________________________
!

download KiXnet

Top
#44710 - 2003-09-02 09:28 PM Re: Implementing virus tools network-wide
Shaggydog Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
We use Norton Antivirus corporate edition here at our headquarters. Trouble is that we never got the funding to buy the extra licenses for the plants out of town. Anyways, here's where I'm at.

Copy "f:\FixVirus.exe" "C:\temp"

That, according to my manual, should work.
How would I go about coding that check for filename?

Top
#44711 - 2003-09-02 09:28 PM Re: Implementing virus tools network-wide
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4648
Loc: The Netherlands
Just checking the registry, check if the file exist, check the version or something should be enough indeed.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#44712 - 2003-09-02 09:34 PM Re: Implementing virus tools network-wide
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
read the manual about getfiletime() and getfilesize()
whit these, being the same as the one on the server, you can be quite sure.
_________________________
!

download KiXnet

Top
#44713 - 2003-09-02 10:00 PM Re: Implementing virus tools network-wide
Shaggydog Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
Apparently this is a file that will only run with administrative rights. I tried doing
run "C:temp\FixVirus.exe" /user:administrator
/password:blahblahblah

Doesn't seem to run.

Top
#44714 - 2003-09-02 10:02 PM Re: Implementing virus tools network-wide
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4648
Loc: The Netherlands
Quoting myself [Big Grin]

quote:

If this is a virus canner or so you probably need your users to have admin privileges. If they donít have this you can use the taskscheduler UDF or (not desirable because of security issues) use su.

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#44715 - 2003-09-03 12:25 AM Re: Implementing virus tools network-wide
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
shaggyboy, sure it runs.
it fails to work though [Big Grin]

like r2d2 said, you need to tweak the thing.
_________________________
!

download KiXnet

Top
#44716 - 2003-09-17 11:30 PM Re: Implementing virus tools network-wide
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Running applicaitons with admin powers is explained in the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 162 anonymous users online.
Newest Members
Jodey, Hiker, GTRoberts, KatieQuinn, Brennnnn
17684 Registered Users

Generated in 0.037 seconds in which 0.012 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