CLS
$a = Get-Date
$b = $a.AddHours(-1) #$a.AddDays(-1)
$Server = "ServerName"
Get-EventLog -ComputerName $Server -LogName Application -After $b -Before $a -Source "MSSQLSERVER" | ?{$_.EventID -eq 14151 }
Index Time EntryType Source InstanceID Message
----- ---- --------- ------ ---------- -------
2255302 Mar 22 10:39 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
2255299 Mar 22 10:38 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
2255298 Mar 22 10:38 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
2255297 Mar 22 10:38 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
2255296 Mar 22 10:37 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
2255295 Mar 22 10:37 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
2255294 Mar 22 10:37 Error MSSQLSERVER 3221239623 The description for Event ID '-1073727673' in Source 'MSSQLSERVER' cannot be found. The...
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE