Huddled Masses
The internet home of Joel "Jaykul" Bennett...
Browse: Home / Modules

Modules

Get-Command in PowerShell 3 (NOTE: CTP2 Bug causes module loading)

By Joel 'Jaykul' Bennett on 16-Feb-2012

I don’t normally blog about the bugs I find in beta software, but I posted this bug to PowerShell’s Connect and I feel like it got ignored and not voted, so I’m going to try to explain myself better here … The bug is on Connect, but let me talk to you first about how [...]

Posted in Huddled | Tagged Bugs, Get-Command, Import-Module, Modules, PowerShell

Working with multiple versions of PowerShell Modules

By Joel 'Jaykul' Bennett on 30-Aug-2011

What follows is a brief explanation of modules, followed by an explanation of how I handle multiple versions of a module. My way isn’t the only way — and I’m rather annoyed that I have to do it — but it works, and might help someone, so here it is. Some back-story During development of [...]

Posted in Huddled | Tagged Modules, PowerShell, Versioning | 1 Response

PowerShell Scripting Best Practices: Prefix A

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

I’m starting a new series of blog posts about Best Practices for scripting in PowerShell, and I was going to start at the beginning with a requirement that you should use [CmdletBinding()], but the explanation of that will have to wait for the next post, because a bug in PowerShell 2.0 has surfaced which can [...]

Posted in Huddled | Tagged Best Practices, Modules, PowerShell

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

F.A.Q.: How do I Install a PowerShell Module

By Joel 'Jaykul' Bennett on 26-May-2010

As a warm up to writing my best-practices posts, I decided to answer this frequently asked question on the PowerShell wiki at PoshCode. I’m not going to repeat the whole post here, but suffice it to say that there’s a good explanation on the How Do I Install a PowerShell Module page, along with this [...]

Posted in Huddled | Tagged Install, Modules, PoshCode, PowerShell | 2 Responses

PowerShell Module Manifests Tip: allowed cmdlets and variables

By Joel 'Jaykul' Bennett on 17-Jan-2010

I was under the impression that module manifests allow only DATA stuff. In fact, if you try to use cmdlets or variables in them, you get the usual Data-language errors, like this: Import-Module : The module manifest ‘C:\Modules\Test\Test.psd1’ could not be processed because it is not a valid PowerShell restricted language file. Please remove the [...]

Posted in Huddled | Tagged Manifest, Metadata, Modules, PowerShell, Windows 7 | 1 Response

Another Module Manifest Gotcha

By Joel 'Jaykul' Bennett on 14-Jan-2010

Shay Levy, ScriptFanatic, wrote about the PowerShellHostVersion on his blog this morning, explaining how it is not a field you should use in your module manifests. Of course, there’s an exception: if your module is dependent on a specific host. For instance, if you’ve written a module for PoshConsole which exploits the WpfHost display features [...]

Posted in Huddled | Tagged Error message, Globally Unique Identifier, Import-Module, Metadata, Modules, PowerShell, RequiredModules | 1 Response

A question about PowerShell Module Manifests

By Joel 'Jaykul' Bennett on 07-Jan-2010

So, I’m building the next PoshCode around modules, with CPAN as my model … Scripts are still there, but they’re still basically done the way they are now: you just upload a single file. Modules, however, will be treated specially. You’ll have to have an account to upload, but you’ll be able to just upload [...]

Posted in Huddled | Tagged CPAN, Metadata, Module Manifest, Modules, PoshCode, Windows PowerShell | 3 Responses

PoshCode Updated for CTP3

By Joel 'Jaykul' Bennett on 24-Dec-2008

I’ve updated the PoshCode script module to support CTP3, and added a -limit parameter to the Get-PoshCode cmdlet so you can specify how many items you want retrieved in the case where there are a lot of matches for your search terms — by default the limit is 25. Improvements to the underlying web search [...]

Posted in Huddled | Tagged Advanced Functions, CTP3, Modules, PoshCode, PowerShell, PowerShell Functions

Getting Started with PowerShell 2 – Part 3

By Joel 'Jaykul' Bennett on 24-Jul-2008

My “getting started” series ran out of steam a bit partly because I didn’t get much feedback on them — maybe you’re not interested, or maybe it wasn’t easy enough, or was just too confusing. In any case, I want to put up at least this one last post to suggest that you get the [...]

Posted in Huddled | Tagged BestPractices, CodeSigning, GettingStarted, Modules, PowerShell, Profile, WalkThrough | 5 Responses

Next »

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.