Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Service Startup History

    If we need to look at the startup history of a service we can find the information in the event log 001 002 003 004 005 006 function Get-ServiceStartupHistory { param ( [string] $name ) Get-EventLog -LogName System | where { ( ( $_ . EventId -eq 7035 ) -or ( $_ . EventId -eq 7036 ) ) -and $_ . Message...
    Posted to Richard Siddaway's Blog by on Mon, Aug 3 2009
    Filed under: Filed under: , , , ,
  • Computername parameter

    This is something I’ve been meaning to share for a while. Many of the cmdlets in PowerShell v2 get an explicit remoting capability via the computername property. get-help * -Parameter computername | sort name Clear-EventLog Connect-WSMan Disconnect-WSMan Enter-PSSession Get-Counter Get-EventLog Get-HotFix...
    Posted to Richard Siddaway's Blog by on Fri, May 1 2009
    Filed under: Filed under: , , , ,
  • How many bytes?

    I was playing around with PowerShell and started thinking about the kb, mb etc values and I realised I didn’t know what they really looked like. 1kb is 1024 but it gets very hazy after that. So how could I see the values stacked up 1kb,1mb,1gb,1tb,1pb | foreach{"$_".PadLeft(16)} works. We feed...
    Posted to Richard Siddaway's Blog by on Thu, Apr 30 2009
    Filed under: Filed under: , , ,
Page 1 of 1 (3 items)