Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: One-Liner: Valid PSH Verbs

    I try to use proper PowerShell verbs, but I’m not always sure what they are (or what they do, which is another matter).  Here’s a quick one-liner to dump those verbs out as a [string[]]$array: Get-Command -CommandType cmdlet | Select-Object -ExpandProperty Verb | Group-Object | Select-Object -ExpandProperty...
  • Blog Post: Abbreviated Key Names in Synthetic Properties

    The title is almost longer than the post. From Chris Dent's http://www.indented.co.uk/index.php/2010/01/12/powershell-iis-and-log-settings/ , I see that he's generating synthetic properties with Select-Object -Property @{n = 'name'; e = { "this row's name" } } Notice anything? PSH allows the...
Page 1 of 1 (2 items)