![]() ![]() ![]() Run it and type the remote computer name you want (or enter for the current PC). Just copy the text below and save it as a. The script I’ve written will use the “ el” (enumerate logs) command to enumerate all logs, then “ epl” (export log) to extract each one: To learn more about a specific command, type the following: The default is Negotiate.ĭisplay output in Unicode. :Īuthentication type for connecting to remote computer. If not specified, or if VALUE is “*”, the user Only applicable when option /r is specified. Specify a different user to log on to the remote computer. Options /im and /um do not support remote operations. If specified, run the command on a remote computer. Gli | get-log-info Get log status information.Īl | archive-log Archive an exported log. Qe | query-events Query events from a log or log file. Um | uninstall-manifest Uninstall event publishers and logs from manifest. Im | install-manifest Install event publishers and logs from manifest. Gp | get-publisher Get publisher configuration information. Sl | set-log Modify configuration of a log.Įp | enum-publishers List event publishers. Gl | get-log Get log configuration information. Options and option values are not case-sensitive. You can use either the short (for example, ep /uni) or long (for example,Įnum-publishers /unicode) version of the command and option names. The batch file is based on a powerful command wevtutil which has the following command options:Įnables you to retrieve information about event logs and publishers, installĪnd uninstall event manifests, run queries, and export, archive, and clear logs. This works on Windows Server 2008 R2/Windows 7 machines, and expect it would work on Vista, but won’t work on XP machines. Following my motto “yes you can do it with batch files” here’s a simple batch file I use to capture all the event logs for offline viewing. I hate to waste a user’s time by remote controlling their machine to view event logs. Now in my experience MMC snap-ins such as event viewer are terrible over slow links with many hangs and plentiful “not respondings”. ![]() Unfortunately I often have to work over slow network links. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |