Skip to content

Sql Server Powershell

  • About

Search

Follow me on Twitter

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

Tags

Month: February 2012

Use WMI to read from the Event Log

February 1, 2012 by Scott Newman, posted in Powershell

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')"
Leave a comment

Twitter

  • Change Sql Service Account Password with no Restart sqlserverpowershell.com/2021/02/26/cha… 1 week ago
  • #HuffPost Stop giving them air. huffpost.com/entry/larry-ku… 1 month ago
  • Geez. Since when does RobinHood steal from the poor to give to the rich... #robinhoodboycott 1 month ago
  • I half expected to see plastic coverings on the sofa cushions... ;) apple.news/AOKCgmfQTTwuy3… 1 month ago
  • Feels good to open my news app and not have Trumps stupid orange face all over it... 1 month ago
Follow @snewman

Posts

  • 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)

Follow me on Twitter

My Tweets

RSS

  • RSS - Posts
  • RSS - Comments

Archives

Blog Stats

  • 143,313 hits
Blog at WordPress.com.