Skip to content

Commit

Permalink
Create Monitor-Event-Logs.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rswio authored Jan 26, 2025
1 parent 2923189 commit 6b536cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Monitoring/Monitor-Event-Logs.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$Servers = @("Server1", "Server2") # Replace with your servers
foreach ($Server in $Servers) {
Get-EventLog -LogName System -ComputerName $Server -EntryType Error -Newest 10
}

0 comments on commit 6b536cc

Please sign in to comment.