• 21 Jul 2009

    ShellTool’s Portable PowerShell – Description, Survey and Private Beta

    What is it? Portable PowerShell is software that allows you to run PowerShell on machines that don’t have PowerShell installed that you can run from a Machine that doesn’t have PowerShell on it, from a USB stick, on a machine that has a different version of PowerShell, a preinstall environment like BartPE, or WinPE or when booted to a windows 7 recovery DVD. Why would I want it? Administrators often cannot get their key...
    • 16 Feb 2009

    Searching PoshCode repository from your Desktop in Windows 7

    A picture says a thousand words     Search results from the PowerShell Code Repository right there on your desktop in windows 7 thanks to federated search and Jaykul adding OpenSearch support to PoshCode. YAY So how do you get this. Simply download this link   and save is as fileextention OSDX from your windows 7 machine. Then Run it. It seems if you just try to open it in IE, you’ll just get the XML.  ...
    • 13 Feb 2009

    Sick of an exception happening to just one item in the pipeline when you don’t care.

    How many times have you had something like: get-thousandsofitems | % { do-something $_ } | whatever Only to have some exception happen in do-something and it throws the whole thing. When really you don’t care, you’d rather just be able to know what failed and have it move on. This happens a fair bit with Get-WMIobject etc, because one of the machines may be off, firewall blocked, some sort of permissions issues – things...
    • 12 Feb 2009

    PowerBoots – a beautiful DSL , not to mention useful.

    I’ve always liked the fact that I can extend PowerShell, whether its just a little bit of syntax here or there, or a full blown DSL, and end up with something that is still naturally powershelly. Jaykul (Joel Bennet) has really used PowerShell in such a way. really making something that is pithy, follows a DRY philosophy, and is METAPROGRAMMING on two levels (the auto generation of the PowerShell functions and parameters...
    • 11 Feb 2009

    Print-File Function

    Here is a simple function that will ask the associated program to print any file you pass in. It can work with a file as a parameter, or multiple files. How well this works, especially with multiple files at a time, depends on the associated application, first whether it supports the print verb, and secondly how it handles it – more importantly how it handles opening many files at once. I haven’t yet been brave enough...
    • 6 Feb 2009

    PowerShell ISE-Cream

    A while back I threw together a few scripts to enhance PowerShell V2 ISE experience that added some PowerShell Analyzer like features . They were a natural fit as ISE (Intergrated Scripting Environment) is like a WPF-based stripped PowerShell Analyzer like with its multiple runspaces, editors, and immediate command area. The extensibility model of ISE has caught on, and many people have been writing some great scripts...
    • 5 Feb 2009

    Tobias and Idera make PowerShellPlus 2.1 Beta Public.

    Well its been six months or more since our baby PowerShell Plus grew up, left home and moved in with Idera. Well its been progressing nicely, and we are happy to see the vision being fulfilled,nd even expanded, with a successful commercial product. Go Tobias – Go Idera. Anyhow, I'm pretty much going to reblog the content from Tobias’s blog entry below. If you haven’t tried PS+ yet. I recommend wholeheartedly that...
    • 31 Jan 2009

    Debugging Realtime by Ear. Adding one more dimension

    I am amazed by people who can pick out every single note and chord when listening to music, and others who can totally play by ear. However even the musically inept and tone-deaf of us can detect an odd note, especially if its in a tune we know, but often even in an unknown tune, we can detect an out of place note, that isn't in the scale, whether we know what a scale is, or even what key the song is in. So what's...
    • 13 Jan 2009

    PowerSMUG – Syncronize folders on your machine with Smugmug.

    In ShellTools most of you were familiar with only Tobias Weltner and Myself, however behind the scenes was a critical cofounder – Eddie Hadjes. Below is a script Eddie wrote a few months back to synchronize data between your local folders and the excellent SmugMug web album service. You can always get the latest version and info on our wiki . Script @ PoshCode: View Script | Download function fbs_click() {u=location.href;t...
    • 9 Jan 2009

    PowerShell Analyzer Refresh for PSV2 + CTP3 advanced function features.

    Though we don’t have intentions to carry developing PowerShell Analyzer much in the future, there are a number of improvements in my personal fork, and we want to make sure that it keeps its shelf life by updating it for PowerShell V2. Surprisingly we are still getting hundreds of downloads a day so we want to make sure that those who prefer PSA can still keep using it and also take advantage of the features I use day...
    • 7 Jan 2009

    This is your Admin life. You HAVE to script PowerShell

    So i was listening to that Dust Brother’s Tyler Durden song from fight club, and PowerShell lyrics started jumping into my head. We’ll most were fleeting before i could capture them, but i did come up with something at least tacky, and fun to some. No offense to anybody. Anyway here is the original song. Listen to it once to get the picture, then a second time while reading my lyrics. Here is a link to the original lyrics...
    • 4 Jan 2009

    PowerShell Analyzer like execution hotkeys for PS CTP3 ISE.

    PowerShell CTP3 ISE - Integrated Scripting environment has inherited many ideas and features from PowerShell analyzer including multiple runspaces,editors, a smaller immediate input area and output pane, however it doesn’t have the output visualizers of PSA nor the super fast RTS like execution control of PSA. However Microsoft in their wisdom has made ISE rather extensible through the $PSISE variable, and many people...
    • 3 Oct 2008

    PowerShell Analyzer now 100% free.

    With the phenomenal success of PowerShell Plus and subsequent transfer to Idera, PowerShell Analyzer is now 100% free. You can read more and get it from our recently updated website - http://www.shelltools.net . In coming weeks we are going to do some surveys to help decide where we want to go as a company with PowerShell IDEs. Sincerely, Karl
    • 20 Jun 2008

    Portable Powershell - Part 2: Roll your own, plus a challenge

    Todays Blog entry is going to cover the HOW of how I put together my demos of Portable PowerShell. Tomorrow I'll move back to clearly defining what I'd like to see from Microsoft. But before I get to the full details a little background: Background So what's stopping PowerShell or practically anything from being portable? dependence on a particular file structure and the registry. Basically the technique I ...
    • 19 Jun 2008

    Portable PowerShell - v1 and v2 side by side - even on Server Core.

    18So I've loved portable apps from time memorial and have valued making my own apps as portable as possible - XCOPY friendly. I've valued this over some fancy installer. But what about PowerShell? Why can't PowerShell be portable. Its the sort of tool that begs to be portable. Admins want a power tool, like powershell to be portable, to be able to be run on any computer without installing anything (changing...
    • 16 Jun 2008

    Fast New PSCustomObject.

    Given the context on the last few posts. I've made a simple helper method in C# that can take a simple powershell hashtable and create a PSCustomObject based on it. Here is an example of how you can call it. [snapinini.newobjecthelper]::newObjectFast(@{name= "karl" ;age=31;now = [datetime]::Now}) very simple and its at least 6 times faster than the closest other technique in powershell. Most of hte...
    • 14 Jun 2008

    generating a "PropertyBag" aka PScustomObject in C#

    Based on the performance testing and work being done by myself , mow , Brandon Shell and others the question has come up what is the quickest way to generate a PSCustomObject, whether in script , on in C#, and how do you even do it in C#? Some typical ways of doing in PowerShell have been either something like the following trick: $a = 1 | select a , b , c , d or with using the Add-member cmdlet as below: ...
    • 13 Jun 2008

    Getting serious about performance in PowerShell.

    I've spend a lot of time in the past looking at the performance of PowerShell but have never gotten around to blogging about it. However it has become quite a hot button among MVPs and others in recent days and we've been busy testing and comparing the speeds different techniques in PowerShell in both V1 and V2. In V1 there seems to be extreme slowdowns when invoking cmdlet, functions, any type of scriptblock...
    • 8 Jun 2008

    SnapInini - Lite portable SnapIns with no need of registration/installation.

    One thing that has bothered me about true cmdlets in contrast scripts is that they lived in SnapIns and couldn't be deployed with xcopy as scripts can because SnapIns required Registration/Installation. I build my own way to deal with this need some time ago, and thought that I'd start a blog series covering it. I call them Snapininis or SnapIn-Lites. A good thing is you can achieve the same end result in PowerShell...
    • 5 Jun 2008

    Determining what version of PowerShell your script is running in.

    Many people recently have asked how to determine programatically what version of PowerShell their script is running in. Well in version two there is a $psversiontable variable, but this sadly isn't in V1. All is not lost though, as you can write a simple function to return a version object for v1. Below is a quick function that I wrote that I have been using for the last year or so. function get-psVersion ...
    • 11 Feb 2008

    Find out differences in properties between two objects

    The other day in the #powershell IRC channel on freenode, a regular wanted to know how to find out the difference in properties between two objects. He had an object with 100 properties and another with about 120 or so and wanted to know which ones were unique in the second object. Compare was the natural first place to look, but it really is good for telling the difference in CONTENT rather than SCHEMA (the object properties...