Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Mike Wilbur's Blog
This Blog
Syndication
RSS 2.0
Atom 1.0
Search
News
Notice
This posting is provided "AS IS" with no warranties, and confers no rights.
Tags
Powershell
Recent Posts
Renaming a network connection with netsh
Powershell Template Engine
get-SHA256
get-datatable.ps1
Managing Performance Counters via Command Line
Archives
August 2007 (1)
March 2007 (4)
February 2007 (8)
March 2007 - Posts
Wednesday, March 14, 2007 10:37 PM
Powershell Template Engine
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: [[
Posted by
mwilbur
|
0 Comments
Wednesday, March 14, 2007 8:10 PM
get-SHA256
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 "-","" }
Posted by
mwilbur
|
1 Comments
Saturday, March 10, 2007 12:40 PM
get-datatable.ps1
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
Posted by
mwilbur
|
0 Comments
Thursday, March 08, 2007 9:56 PM
Managing Performance Counters via Command Line
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.
Posted by
mwilbur
|
0 Comments