you can also use a .INI file like
code:
[SERVERS]
SERVER1 = Windows 2000 Server
SERVER2 = Windows 2000 Advanced Server

Then you can read the list with
code:
$serverarray=readprofilestring('servers.ini','SERVERS','')
for each $server in $serverarray
$rc=BackupEventlog( '\\'+$server+'\Application' , 'c:\evlogs\application.evt')
$rc=BackupEventlog( '\\'+$server+'\System' , 'c:\evlogs\system.evt')
$rc=BackupEventlog( '\\'+$server+'\Security' , 'c:\evlogs\security.evt')
$rc=ClearEventlog('Application')
$rc=ClearEventlog('Security')
$rc=ClearEventlog('System')
next

You might want to consider to copy the eventlogs to a central location after the backup. However, be aware that BACKUPEVENTLOG can only create a backup on the local disk.

[ 03. September 2002, 16:34: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.