ForEach-Parallel
I just came back from the PowerShell Deep Dive at TEC 2012. A great experience, by the way. I highly recommend it to everyone. Extremely smart and passionate people who could talk about PowerShell...
View ArticleReceiving a Disconnected PowerShell Session Asjob
I was down in Washington DC delivering a presentation about Windows Server 2012 for a roadshow that Microsoft put on. This was one stop in a few that I was lucky enough to be a part of (actually it’s...
View ArticleHow to Execute PowerShell Scripts Without the CPU Hit to Start PowerShell
Background – The Problem I have been playing a lot with Splunk recently. If you’re not familiar with the product, it is a horizontally scalable database that leverages map-reduce to give you real-time...
View ArticleMedian and Mode in a Measure-Object Proxy Function or How to Add Properties...
I was poking around Khan Academy for something to do. Because I’ve been living and breathing data, I thought it only appropriate to run through the statistics lessons up there. While, I’m no slouch...
View ArticlePowerbits #9 – Get the directory of the calling script or get the current...
This is one of my most used snippits of code. I generally put this at the beginning of every script. Every time I need it, I always say I need to post this as a powerbit so that I can find it more...
View ArticleGet a list of metro apps and launch them in Windows 8 using PowerShell
I’ve been playing with Windows 8 store apps (metro apps) in C# and Xaml recently, and of course I thought it would be cool to launch these apps from within Windows PowerShell. After some fruitless...
View ArticleLearning a New Language – Perl, Python, and PowerShell – Part I – Executing a...
I have been doing development in some form or another for a long time. I learned Perl around 1997. I toyed with Basic and Pascal in high school and college, but it was nothing serious. Since that time,...
View ArticlePowerbits #10 – history |grep or hgrep in PowerShell
I’ve been working a bit more in Linux. Besides it inspiring me to write a lexical parser in python for PowerShell (don’t get your hopes up – it’s too much work, and I can’t do it), I keep getting...
View ArticleYou Know PowerShell is an Object-Oriented Language, Right?
I was recently reading an article that I’ll refrain from linking to for fear of a flame war. It infuriated me because it referred to PowerShell as a procedural/functional language that is antiquated...
View ArticleAnnouncing PshOdata – Cmdlets that make Odata easy
I’m sitting in the PowerShell summit and just left the stage where I presented how the Odata extensions work and shared my new project (contributors welcome) to bring PowerShell-driven Odata endpoints...
View ArticleInvoking the GetDiskSpaceInformation method of the IOfflineFilesCache COM...
This article could also be entitled, “Using an Inproc COM server in C# and PowerShell”. Part I of this series shows how to invoke the GetDiskSpaceInformation method of the IOfflineFilesCache COM...
View ArticleInterprocess Communication (IPC) Between Asynchronous Events Triggered in C#...
I played with Apache Zookeeper and PowerShell all weekend. While I won’t dig into what I’ve been doing deeply in this article, I will tell you that the .NET interface requires a lot of asynch...
View ArticleLinux folks meet piped objects, Microsoft folks meet sed!
The world is a buzz around the announcement that Microsoft has open sourced PowerShell and released a working version of the language for Mac and Linux. Personally, I’ve been looking forward to this...
View ArticleH2o – Machine Learning with PowerShell
This article will give you the basics to leverage H2o to create a neural net model in seconds and then show you how to consume that model all from Windows PowerShell. We’ll assume you do NOT know what...
View Article