Huddled Masses
You can do more than breathe for free...
Browse: Home / PowerTips

PowerTips

PowerBoots: The tutorial walkthrough

By Joel 'Jaykul' Bennett on 02-Apr-2009

Updated to PowerBoots 0.1 An introduction to PowerBoots Please excuse me if I start by just copying the basic ideas of the Shoes Tutorial, but I figured that since PowerBoots is inspired by Shoes, that was as good a place as any to start. PowerBoots (or just “Boots”) is a PowerShell 2.0 module with functions [...]

Posted in Huddled | Tagged Development, GUI, PowerBoots, PowerShell, PowerTips, Tutorial, WalkThrough, WPF | 14 Responses

PowerShell PowerUser Tips: List the Cmdlets in an Assembly

By Joel 'Jaykul' Bennett on 15-Sep-2008

Tiny script… let me know if you know a better way. function Get-Cmdlets { param([System.Reflection.Assembly]$assembly) $assembly.GetTypes() | Where-Object {      $_.GetCustomAttributes([System.Management.Automation.CmdletAttribute],$false) } | ForEach-Object {      $type = $_      $_.GetCustomAttributes([System.Management.Automation.CmdletAttribute],$false)   } | Select VerbName, NounName, @{n="Type";e={$type}} | } ## Example usage. ## You can use the [System.Reflection.Assembly]::Load… methods to get [...]

Posted in Huddled | Tagged PowerShell, PowerTips, PowerUser, Reflection, Tips

PowerShell Power User Tips: A Better Prompt

By Joel 'Jaykul' Bennett on 12-Aug-2008

For this edition of my Power User tips for PowerShell, I’m going to share my (heavily annotated) prompt function. Feel free to to copy useful pieces or just place the whole thing in your profile script I’m not going to say anything more, I’ll let the comments speak for themselves. Edit: Someone just pointed out [...]

Posted in Huddled | Tagged CurrentDirectory, Path, PowerShell, PowerTips, Scripting, Tips

Ideas for Writing Composable PowerShell scripts

By Joel 'Jaykul' Bennett on 28-May-2008

I was just having some fun with some recent blog posts… WPF & PowerShell – Part 5 has a script for “Get-Listbox” and for “Show-Control” and Halr9000 wrote a script he called Get-PSBlogroll I had modified the example from the WPF post to create a listbox which will “start” whatever you double click … Get-Listbox [...]

Posted in Huddled | Tagged Pipeline, PowerShell, PowerTips, Scripting, WPF | 1 Response

PowerShell Power User Tips: Bash-style “alias” command.

By Joel 'Jaykul' Bennett on 02-May-2008

I keep hearing from new users who are used to bash-style aliases, how frustrating it is not to be able to create aliases with parameters, the way you can in bash … I’m going to show you how to make the “alias” command work roughly the way it does in bash, but first, let me [...]

Posted in Huddled | Tagged PowerShell, PowerTips, PowerUser, PUT, Scripting, Tips

PowerShell Power User Tips: Current Directory

By Joel 'Jaykul' Bennett on 16-Apr-2008

This is the second in an occasional series of tips for PowerShell users: short posts which don’t intend to give guidance, but merely a tip on a feature you may not be aware of, or maybe even answers to some of the recurring questions that come up in #PowerShell. Fixing the “Current Directory” problem The [...]

Posted in Huddled | Tagged CurrentDirectory, Path, PowerShell, PowerTips, PUT, Scripting, Tips

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • April 2012
  • February 2012
  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.