Table of contents
No headers
| Huddled Masses |
|---|
| Virtual PowerShell Event Tonight August 31st at 9PM eastern, we’re having a live IRC chat with author, developer, and Microsoft PowerShell team member Lee Holmes to celebrate the release of the 2nd edition of his book: Windows PowerShell Cookbook. There are more details on the Virtual PowerShell User Group page about joining IRC and about this chat in particular |
| I wanted to start my best-practices series… I was trying to write the first real post for that series today, but I got really distracted, and instead … Created a Virtual Launch Party for Lee Holmes’ 2nd Edition Windows PowerShell Cookbook Updated my SharpSsh Module (which I wrote about ages ago in Scriptable SSH From PowerShell) to accept PSCredential objects or passwords, [...] |
| RFC: Information in PoshCode Module Manifests OK, I’m putting this out there to see if I’ve missed anything that would be useful. This is the list of metadata that we’ll be storing about Modules in the PoshCode repository. It duplicates most of the information in the PowerShell Manifests, but it adds more of information that we feel is important for searching, [...] |
| What Scope Am I In? 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 [...] |
| PowerShell Scripting Best Practices: Prefix A 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 [...] |
| How to Import Binary Modules from Network Shares 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 [...] |
| What posts should I update? Someone asked me this week about this old post about custom ICompareers, and wondered if I could rewrite it for PowerShell 2.0 and wrap it in an advanced function … and it made me think: I really should update some of my old posts from PowerShell 1 and the preview releases of 2 so that [...] |
| PowerBoots 0.3 – The Faster Edition I’ve been working on a ton of new functionality for this next release of PowerBoots … and now that I’m getting close to ready to release, I thought it was time to work on the performance! Here’s a completely trivial example: WPK: Command : $boxes = 1..100 | % { New-TextBox -Text Foo -FontFamily Consolas [...] |
| Better error messages for PowerShell ValidatePattern If you’ve been writing advanced PowerShell 2.0 functions, you’ve probably used some of the Validate* attributes to enforce valid parameter values, and you may have noticed that their error messages leave a lot to be desired. For example, imagine that you have a parameter which takes a 10-digit phone number: function Test-PhoneNumber { param( [ValidatePattern('^\(?\d{3}\)?[-\s.]?\d{3}[-\s.]\d{4}$')]$number [...] |
| F.A.Q.: How do I Install a PowerShell Module 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 [...] |

Comments