Solving the “failed to grant minimum permission requests” error
If you’re getting the error: Import-Module : Could not load file or assembly … or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0×80131417) because you’re trying to load a module from a network share … you need to read the PoshCode wiki page which explains how to use caspol [...]
Open Source and Community-Developed Software
If you didn’t know that there’s a feeling of community among open source developers, you may have been hiding under a rock for the past several years. However, depending on where you work, and how active you are in hobbyist software development, you may or may not realize how passionate the debates and arguments are [...]
WPF Window “Native” Behavior: Metro Window
A couple of years ago I first introduced my native behaviors for WPF to support enhancing WPF applications with behaviors that require PInvoke or hooking the Window’s message processing loop: WndProc. You can read all about it on my previous posts, including the original implementations of my Snap To Screen Edges behavior, and my Custom [...]
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 [...]