March, 2007

  • Mike Wilbur's Blog

    Powershell Template Engine

    • 0 Comments
    A template engine that allows you to have powershell expressions in your templates is a very powerful thing: http://weblogs.asp.net/soever/archive/2006/12/31/a-templating-engine-using-powershell-expressions.aspx Example Input: Multi Line Expression: ...
  • Mike Wilbur's Blog

    get-SHA256

    • 1 Comments
    Get the SHA256 hash in one line of powershell: function get-sha256 { param($file);[system.bitconverter]::tostring([System.Security.Cryptography.sha256]::create().computehash([system.io.file]::openread((resolve-path $file)))) -replace "-","" }
  • Mike Wilbur's Blog

    get-datatable.ps1

    • 0 Comments
    get-datatable.ps1 is an improvement on the get-dataset.ps1 from an earlier post . Instead of returning a dataset it returns a DataTable; and a UpdateSql method is added to the object returned, so you don't need a separate script to send the changes back...
  • Mike Wilbur's Blog

    Managing Performance Counters via Command Line

    • 0 Comments
    When it comes to scripting the setup of performance counters Logman is your friend; and Relog comes in really handy for converting a binary log to SQL log.
Page 1 of 1 (4 items)