Re: backup a remote host's event logs

Tech-Archive recommends: Speed Up your PC by fixing your registry



Adam Sandler wrote:
On Jun 12, 5:28 pm, "Michael Harris \(MVP\)" <mikhar.at.mvps.dot.org>
wrote:

Look in the C:\Temp folder on each of the servers...

Once the event log is backed up, you can use a UNC path reference
\\server\c$\temp to copy the *.evt file and then delete them from the
server.

My script has this line:

backupLog = log.BackupEventLog(sFileName)

and

sFileName has "C:\Temp\" in it... somehow the scripting engine thinks
this is the local (to each host) temp dir and NOT the dir from where
the script was run??? ...

That is the way *remote* WMI automation is designed to work, it has nothing
to do with script host/engine executing on your machine.


... How about if I put your \\server\c$\temp
suggestion in sFileName and since I've then been explicit about the
location I can avoid having to copy afterwards?

Remote WMI automation runs in an impersonated security context, meaning that
it can't access other remote resources like UNC paths.

--
Michael Harris
Microsoft.MVP.Scripting


.



Relevant Pages

  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • RE: WMI ExecQuery from Win32_NTEventLogFile in a Workgroup environ
    ... computer from which the script is being run? ... "urkec" wrote: ... as it correctly creates the .evt files for the local ... I have a script that runs on one node and copies files from all the remote ...
    (microsoft.public.scripting.vbscript)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... is a GC/AD server with DNS and DHCP for it's area. ...
    (microsoft.public.windows.server.sbs)
  • Re: wshremote not running script on remote computer
    ... "The script you deploy to the remote computer must not attempt to interact ... I do want to open a command window on a remote machine, ...
    (microsoft.public.scripting.vbscript)