Skip to content

Sql Server Powershell

Month: February 2012

Use WMI to read from the Event Log

Pilfered from here.  More for my use than yours.  Winking smile

$BeginDate=[System.Management.ManagementDateTimeConverter]::ToDMTFDateTime((get-date).AddDays(-1))
get-wmiobject -class win32_ntlogevent -computerName $servername -filter "(EventCode=18453)  and (LogFile='Application') and (TimeGenerated >'$BeginDate')"
Scott Newman Powershell Leave a comment February 1, 2012 1 Minute

Twitter

  • The Supreme Court hands the religious right a big victory by lying about the facts of a case vox.com/2022/6/27/2318… via @voxdotcom 1 day ago
  • https://t.co/9SIkY7glNS 2 days ago
  • RT @Lowenaffchen: at least a lot of people who would have been happy about this choked to death on a ventilator last year while their wife… 2 days ago
  • RT @MaryLTrump: For everybody saying it's unacceptable to change the number of Supreme Court justices, Mitch McConnel did that for almost a… 3 days ago
  • I blame Mitch McConnell. His win at all costs mentality politicized the court. Can we honestly say the court is not… twitter.com/i/web/status/1… 4 days ago
Follow @snewman

Posts

  • November 2021 (1)
  • February 2021 (1)
  • November 2020 (2)
  • October 2020 (2)
  • October 2019 (1)
  • February 2019 (1)
  • November 2018 (2)
  • April 2018 (1)
  • November 2017 (1)
  • October 2017 (1)
  • September 2017 (1)
  • July 2017 (1)
  • June 2017 (1)
  • April 2017 (3)
  • October 2016 (1)
  • July 2016 (13)
  • January 2016 (1)
  • September 2015 (2)
  • May 2015 (1)
  • April 2015 (1)
  • March 2015 (2)
  • February 2015 (2)
  • January 2015 (1)
  • December 2014 (3)
  • September 2014 (3)
  • August 2014 (2)
  • May 2014 (2)
  • April 2014 (4)
  • March 2014 (3)
  • February 2014 (3)
  • January 2014 (4)
  • November 2013 (1)
  • August 2013 (2)
  • June 2013 (1)
  • May 2013 (3)
  • April 2013 (4)
  • March 2013 (2)
  • February 2013 (16)
  • January 2013 (1)
  • December 2012 (4)
  • November 2012 (1)
  • October 2012 (5)
  • September 2012 (3)
  • August 2012 (2)
  • July 2012 (3)
  • June 2012 (2)
  • May 2012 (2)
  • April 2012 (4)
  • March 2012 (1)
  • February 2012 (1)
  • January 2012 (6)
  • December 2011 (8)
  • November 2011 (5)
  • October 2011 (14)
  • July 2011 (7)
  • May 2011 (1)
  • April 2011 (1)
  • February 2011 (3)
  • January 2011 (2)
  • December 2010 (1)

RSS

  • RSS - Posts
  • RSS - Comments

Archives

Blog Stats

  • 160,426 hits

Follow me on Twitter

My Tweets
February 2012
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
272829  
« Jan   Mar »

Tags

Blog at WordPress.com.
  • Follow Following
    • Sql Server Powershell
    • Join 99 other followers
    • Already have a WordPress.com account? Log in now.
    • Sql Server Powershell
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar