|
Well, I'm stumped. My end goal is to create a script to backup and clear the event logs on my servers. However, I can't even get a simple call to BackupEventLog to work as expected. I've checked manuals, references, and scripts. I'm not doing anything -wrong-. But something is broken. If you have any ideas, I'd be happy.
Here's my very small test code: DEL C:\Logs\test.evt $rc=BackupEventLog("\\Server7\System", "C:\Logs\test.evt") ? $rc
DEL C:\Logs\test.evt $rc=BackupEventLog("System", "C:\Logs\test.evt") ? $rc
The first backs up a server, the second my PC. My result is always:
3 0
My understanding is that 3 is: ERROR_PATH_NOT_FOUND So, I *know* it's not the output file. So it has to be the server pathing. I've tried numerous servers, all the with same result. The servers name are legit, DNS is proper, and I'm a domain admin. I've tried this with: KiXtart 2001 **Release Candidate 3** 4.00 (Copyright 2001 Ruud van Velsen) and KiXtart 2001 4.20 (Copyright Ruud van Velsen 2002) Thanks!
Jason
|