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

PowerUser

What Scope Am I In?

By Joel 'Jaykul' Bennett on 06-Aug-2010

In PowerShell the question of scope is too complicated and convoluted. I’m going to try to help you understand it, but I’m not guaranteeing that I will be able to make it seem any simpler than it actually is. Hopefully, I won’t make it more complicated than it inherently is In PowerShell you always have [...]

Posted in Huddled | Tagged PowerShell, PowerUser, Scope, Tips, Variable Scope | 1 Response

How to Import Binary Modules from Network Shares

By Joel 'Jaykul' Bennett on 03-Jul-2010

Note: This is from a wiki page I just wrote on Importing Binary Modules from Network Shares which discusses not just the solution below that works for .Net 2.0 but also how to solve the problem on .Net 4.0 (e.g.: in PoshConsole). I will most likely not keep this page up to date, so you [...]

Posted in Huddled | Tagged .Net4, CAS, FileShare, Modules, Policy, PowerShell, PowerUser, Security, UNC

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: 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

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.