Quantcast
Channel: Live PowerShell With Karl Prosser » Powershell
Browsing latest articles
Browse All 98 View Live

Image may be NSFW.
Clik here to view.

Portable PowerShell with Portable PowerShell ISE.

After a long fight we finally conquered making PowerShell ISE portable also. A new Beta of Portable PowerShell should be out by the end of the week that has ISE support and to celebrate we will open up...

View Article



Image may be NSFW.
Clik here to view.

PowerShell running in Dotnet 4

Back in the Dotnet 4, VS.NET 2010 Beta days i threw together a PowerShell console host compiled against dotnet 4 but really didn’t do anything with it. It seems that there is a bit of demand for it....

View Article

Image may be NSFW.
Clik here to view.

Silverlight IDE possiblities for DekiScript, Javascript, PowerShell,...

I’m a huge fan on Mindtouch, it’s awesome RESTful Web Orientated Architecture with Dream that makes REST a pleasure but also in a powerful and performant manner with a great async coroutine...

View Article

Where-in and Where-Property-in

I’m back again in my quest for general purpose functions slicing and dicing objects and keeping it all in the pipeline. So in PowerShell you often use the pattern in the pipeline of get-something |...

View Article

Run In Module

Have you even been working on a a module, call a function, but then get frustrated because you can’t get to that $script:something. Well modules and scopes is an interesting problem. and when you...

View Article


Attaching Custom MetaData to Functions

One nice thing about object in dotnet, including ETS PowerShell objects is the ability to really store MetaData with a variety of techniques, then later you can walk up to an object programatically,...

View Article

H20 – hashtable from scriptblock to powershell Objects

Here is another function in my endless Quest at producing Helper functions that simplify doing complicated stuff in PowerShell and that keeps it in the pipeline. function h20([scriptblock]$sb,...

View Article

Did you know you can have “advanced functions” with filters too?

In PowerShell to make a function an advanced function you typically decorate it with [PSCmdletBinding()] or attach a [Parameter()] to it, and now you get the full features of cmdlets available to you....

View Article


Image may be NSFW.
Clik here to view.

Functions with process blocks versus functions without process blocks.

What’s the difference between a function with a process block versus one without? When you have a process block you can have a begin and end as well (optionally) the process block is called for each...

View Article


Image may be NSFW.
Clik here to view.

Calling PowerShell 64bit from 32bit and visa versa

So why would somebody want to call 64bit PowerShell for a 32bit PowerShell process or visa versa? Well there are numerous reasons but sometimes you happen to be in a host that is on kind of process...

View Article

Image may be NSFW.
Clik here to view.

Expressions in PowerShell with “statement keywords”

Most developers who have followed the traditional imperative procedural through object orientated programming language legacy and particularly the family of C languages may be unaware of certain...

View Article

All your IP V6 Addresses are belong to US

I often have to write code that is automating against a lot of different machines, but when developing that code I often just want to loopback to the local machine. However most of my code wants to...

View Article

USING for PowerShell?

One thing that many C# folks complain about PowerShell , is that while it lives in the DotNet ecosystem and works with DotNet objects it doesn’t have a Using statement that is in C# that works into a...

View Article


Jobs Started from a workflow continue to run even with the workflow finishes...

I plan on writing many articles about PowerShell workflow based on a lot of deep work I’ve done quite lately, but here is a random interesting fact. Typically in PowerShell if you start a job say from...

View Article

Image may be NSFW.
Clik here to view.

Calling PowerShell V3 from Orchestrator 2012

The problem with calling PSV3 from Orchestrator 2012 is that PSV3 runs on the CLR V4, while Orchestrator runbooks and the Invoke.Net Activity run in a CLR V2 Process, so it automatically Binds...

View Article


Image may be NSFW.
Clik here to view.

PS Gotcha: Scheduled Jobs and Battery

The other day I was working with a ne wPSV3 feature called Scheduled Jobs which is really cool as it allows you run some stuff as a Scheduled job, which uses the Scheduled Task engine to run it. You...

View Article

Image may be NSFW.
Clik here to view.

Portable PowerShell for V3 Beta

We have released Portable PowerShell for V3 Beta. We have only gotten the 32bit version working so there is no 64 Bit, and also no ISE. We won’t be looking further into the issues we had with both...

View Article


Is the PC really dead and Microsoft screwed?

Ever since the Ipad came out, I’ve been hearing “The PC is dead.” and we are in the “Post PC Era.” and with very poor PC sales that sentiment could seem somewhat true. However the PC is far from dead....

View Article

WinRT and PowerShell Part 1

This is a post about using Windows Runtime (WinRT) components “projections” from PowerShell. First however a disclaimer as to what this IS not. This is NOT about using or running PowerShell on the...

View Article

Experimenting with SQLlike and PowerShell Like syntax in CoffeeScript. Part 1

Here are some old experiments of mine that i never got around to sharing. Since 2008 i’ve been on and off experimenting with a “Web Shell”, with the focus being on creating a powershellesque rich...

View Article

Experimenting with SQLlike and PowerShell Like syntax in CoffeeScript. Part 2

In my previous post I gave a small background about my experimentation with “webshell” sort of things and gave an example in CoffeeScript of trying to do SQL like syntax. This example here is similar...

View Article


Hooking C++ Method Calls.

this is something i wrote up for a post on a forum many years ago, but thought i’d post it here to keep around. This was with quite an older version of Visual C++, so its quite likely that the assembly...

View Article


Running Javascript inside PowerShell with PowerShellJS

Some time ago I started a project to host a JavaScript engine within PowerShell. I initially called it PowerChakra because, well the engine was IE’s Chakra engine, however I’ve renamed it PowerShellJS...

View Article

Running TypeScript inside PowerShell with PowerShellJS

In my previous post I introduced PowerShellJS where you can run JavaScript within PowerShell. Now that TypeScript 1.0 has dropped, i’ve added initial support to Compile and run TypeScript inside...

View Article

Image may be NSFW.
Clik here to view.

Introducing DayBreak. A Chinese language “DSL” on top of PowerShell

One thing early on I liked about PowerShell was that you could quite easily use it to create your own language structures because of its flexibility, often in just a few lines of code. I think I first...

View Article


Building the game 2048 in Basic on the C64 in 4 Hours. “celebrating” 50 years...

While I regularly give Basic, in particular Visual Basic, and its contemporary practitioners  a solid tongue lashing, and pull out the Dijkstra quotes about being “mentally mutilated beyond hope of...

View Article

replacing many grouped regular expression matches in powershell

PowerShell has some really good build in language features for dealing with regular expressions -Replace , -Match . Not to mention regex filtering is available to many cmdlets etc, and if thats not...

View Article

Quick and Dirty C# Expressions from within Powershell.

Have you ever just wanted to run a line or two of C# from within PowerShell and consume the resulting objects from PowerShell? Before V2 you had to do some codedom yourself Plus write a full dotnet...

View Article

Would the real PowerShell V2 stand up?

There is alot of confusion about which PowerShell V2 to download. The problem is if you search for Download PowerShell V2, the most prominent hits are PowerShell V2 CTP – basically an Old Beta....

View Article



Image may be NSFW.
Clik here to view.

Interesting Effect (bug) with Consoles and Processes.

I was having an odd behavior with Portable PowerShell where if i started it from CMD it would take turns between giving a CMD.exe prompt and a PowerShell Prompt and take turns running them. So in this...

View Article

Image may be NSFW.
Clik here to view.

ShellTools Releases Pop Connector

ST POP Connector for Exchange server is designed as a replacement of the POP3 Connector in Small Business Server, but can be used with any Exchange or SMTP server.  ST POP Connector provides the...

View Article

Collate IP information in PowerShell with WMI

This uses my AS function to make the expression more declarative but basically its a wrapper around win32_networkadapterconfiguration that projects and flattens the data in a nice Pscustomobject that...

View Article

Reflections on iPhoneOS Terms of Service 3.3.1 and Steve Job’s open letter to...

Warning this will be a long post. I normally don’t get heated about things but the fiasco with the new iPhone developer terms of service has kept my attention for the last few weeks and I suppose it’s...

View Article


Passing true dotnet nulls for strings to APIs from powershell

There is an issue that can basically prevent you from calling certain dotnet apis. Basically the trick is just to make a class that’s .tostring() returns a null, and then when you pass that to an api...

View Article

DSLs / DSVs in PowerShell – Presentation at LangNet 2009

At LangNet 2009 last year i presented on DSLs in PowerShell. I wrote up a couple example ones . One which the presentation is in a kind of mini PowerPoint and another where i automated the awesome...

View Article

Image may be NSFW.
Clik here to view.

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

View Article


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

View Article


Image may be NSFW.
Clik here to view.

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

View Article

Building an ASP.NET MVC Twitter app over 24 hours.

I want to make a asp.net MVC twittercentric web app in 24 hours. I had initially thought that I’d do 24 hours in a stretch, but as an aging (31) family man I don’t think I will be able to pull that...

View Article

Image may be NSFW.
Clik here to view.

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

View Article

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

View Article


A series of almost unfortunate events.

So I came home and wanted to make sure that everything would go smooth for ringing into the PowerScripting Podcast. 1) The first thing I did was go to plug in my cell phone charger, however I plugged...

View Article

Image may be NSFW.
Clik here to view.

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

View Article


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

UPDATE FEB 2010 We don’t need to rely on things like thinapp or app-v anymore. At ShellTools we have build our own Portable PowerShell framework. Its currently in Beta – see...

View Article

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

View Article


quick and dirty new custom object

I’ve been looking through a bunch of my old scripts (pre 2007) and found an interesting new-pscustomobject. I wouldn’t recommend you use this since now there are better ways in V2, and if you wanted to...

View Article

Image may be NSFW.
Clik here to view.

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

View Article

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

View Article

Image may be NSFW.
Clik here to view.

Sick of an exception happening to just one item in the pipeline when you...

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

View Article


Cache playlist.com playlists with PowerShell

Here is a script i threw together to cache playlist.com playlists for offline listening when your internet connection is spotty. function calculateurl ([string]$source) { $encoded =...

View Article

Browsing latest articles
Browse All 98 View Live




Latest Images