Advertisement
c0psrul3

PowerShell :: Get-EventLog (simple, example usage)

Dec 24th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. PowerShell :: Get-EventLog (example usage)
  2. =============================================
  3.  
  4. **
  5. This function produces a list of recent MS EventLog Messages, for example: the "newest 50".
  6. **
  7. `ft` is some kind of pager-like program that organizes data, given column names.
  8. **
  9.  
  10.  
  11. Example command line:
  12. ---------------------
  13. ""
  14. C:\Users\mnichols> Get-EventLog System -EntryType Error -Newest 50 |ft TimeGenerated, Message -auto
  15. ""
  16.  
  17.  
  18. Example output:
  19. ---------------
  20. ""
  21. TimeGenerated Message
  22. ------------- -------
  23. 12/22/2015 11:36:15 AM Installation Failure: Windows failed to install the following update with error 0x80070002: W...
  24. 12/21/2015 1:46:31 PM Installation Failure: Windows failed to install the following update with error 0x80070002: M...
  25. 12/21/2015 1:42:16 PM The description for Event ID '10016' in Source 'DCOM' cannot be found. The local computer ma...
  26. 12/19/2015 3:32:35 AM The TeamViewer service failed to start due to the following error: ...
  27. 12/19/2015 3:32:35 AM A timeout was reached (30000 milliseconds) while waiting for the TeamViewer service to connect.
  28. 12/19/2015 3:32:09 AM The SNMP Service encountered an error while accessing the registry key SYSTEM\CurrentControlS...
  29. 12/19/2015 3:32:01 AM The NetTcpActivator service depends on the NetTcpPortSharing service which failed to start be...
  30. 12/19/2015 3:30:01 AM The description for Event ID '10010' in Source 'DCOM' cannot be found. The local computer ma...
  31. 12/19/2015 3:30:01 AM The description for Event ID '10010' in Source 'DCOM' cannot be found. The local computer ma...
  32. 12/19/2015 3:30:01 AM The description for Event ID '10010' in Source 'DCOM' cannot be found. The local computer ma...
  33. 12/19/2015 3:30:00 AM The User Data Access_1079f6 service terminated unexpectedly. It has done this 1 time(s). Th...
  34. 12/19/2015 3:30:00 AM The User Data Storage_1079f6 service terminated unexpectedly. It has done this 1 time(s). T...
  35. 12/19/2015 3:30:00 AM The Contact Data_1079f6 service terminated unexpectedly. It has done this 1 time(s). The fo...
  36. 12/19/2015 3:30:00 AM The Sync Host_1079f6 service terminated unexpectedly. It has done this 1 time(s). The follo...
  37. 12/18/2015 9:11:23 AM Installation Failure: Windows failed to install the following update with error 0x80070002: W...
  38. 12/18/2015 12:52:08 AM The description for Event ID '10010' in Source 'DCOM' cannot be found. The local computer ma...
  39. 12/18/2015 12:52:07 AM The description for Event ID '10010' in Source 'DCOM' cannot be found. The local computer ma...
  40. 12/17/2015 12:19:17 PM Installation Failure: Windows failed to install the following update with error 0x80070002: M...
  41. 12/16/2015 2:24:53 PM Installation Failure: Windows failed to install the following update with error 0x80070002: M...
  42. 12/11/2015 8:46:52 AM The SNMP Service encountered an error while accessing the registry key SYSTEM\CurrentControlS...
  43. 12/9/2015 10:49:42 PM Installation Failure: Windows failed to install the following update with error 0x80070002: O...
  44. 12/9/2015 10:47:57 PM Installation Failure: Windows failed to install the following update with error 0x80070002: M...
  45. 12/9/2015 12:00:51 AM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  46. 12/8/2015 10:08:48 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  47. 12/7/2015 6:08:44 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  48. 12/7/2015 4:16:48 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  49. 12/7/2015 2:24:49 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  50. 12/7/2015 12:32:48 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  51. 12/6/2015 4:00:49 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  52. 12/6/2015 2:08:49 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  53. 12/6/2015 12:16:51 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  54. 12/6/2015 10:24:51 AM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  55. 12/5/2015 8:16:51 AM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  56. 12/5/2015 6:24:46 AM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  57. 12/5/2015 4:32:50 AM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  58. 12/4/2015 12:32:42 AM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  59. 12/3/2015 10:40:43 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  60. 12/3/2015 8:48:43 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  61. 12/3/2015 6:56:42 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  62. 12/3/2015 5:04:42 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  63. 12/3/2015 3:12:36 PM The processing of Group Policy failed. Windows attempted to read the file \\GNSLLC.local\sysv...
  64. 12/3/2015 3:11:15 PM The NetTcpActivator service depends on the NetTcpPortSharing service which failed to start be...
  65. 12/3/2015 3:09:29 PM The description for Event ID '10010' in Source 'DCOM' cannot be found. The local computer ma...
  66. 12/3/2015 3:09:28 PM The description for Event ID '10016' in Source 'DCOM' cannot be found. The local computer ma...
  67. 12/3/2015 3:09:28 PM The User Data Access_243e8dc service terminated unexpectedly. It has done this 1 time(s). T...
  68. 12/3/2015 3:09:28 PM The User Data Storage_243e8dc service terminated unexpectedly. It has done this 1 time(s). ...
  69. 12/3/2015 3:09:28 PM The Contact Data_243e8dc service terminated unexpectedly. It has done this 1 time(s). The f...
  70. 12/3/2015 3:09:28 PM The Sync Host_243e8dc service terminated unexpectedly. It has done this 1 time(s). The foll...
  71. 12/3/2015 3:09:27 PM The User Data Access_1ddcacb service terminated unexpectedly. It has done this 1 time(s). T...
  72. 12/3/2015 3:09:27 PM The User Data Storage_1ddcacb service terminated unexpectedly. It has done this 1 time(s). ...
  73. ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement