Category Archives: PowerShell

Debugging in the PowerShellEditorServices for Visual Studio Code

You’ve probably heard about Microsoft’s Visual Studio Code editor.  It was announced at the 2014 online Connect event.  It is a free, light-weight, cross-platform code editor supporting Windows, Linux and MacOS.  I’ve been a big fan and user of the … Continue reading

Posted in PowerShell, PowerShellEditorServices, VSCode | Tagged , , | 1 Comment

PowerShell Snippets for Visual Studio Code

If you are a fan of using Visual Studio Code as a lightweight text editor and are also a PowerShell scripter, you have probably found VS Code’s PowerShell support somewhat lacking.  For instance, while it can syntax colorize PowerShell script … Continue reading

Posted in PowerShell, VSCode | 8 Comments

An Explanation of the .NET add_EventName / remove_EventName Methods for PowerShell Scripters

If you have ever attempted to write a little WinForms or WPF UI using PowerShell you have no doubt run across a method like add_Click() e.g. This might be a bit confusing if you are looking at C# examples or … Continue reading

Posted in .NET, PowerShell | 2 Comments

BlackJack, NamedPipes and PowerShell Classes – Oh My!

In my last blog post, I introduced you to using .NET named pipes to implement BlackJack across different PowerShell processes and even across the network.  In this blog post, we will take a look at what it is like to … Continue reading

Posted in .NET, PowerShell, PowerShell 5.0 | 2 Comments

Windows PowerShell and Named Pipes

A named pipe is a stream-based mechanism for inter-process communication (IPC).  The .NET Framework has two types for allow you to use named pipes: System.IO.Pipes.NamedPipeServerStream System.IO.Pipes.NamedPipeClientStream MSDN describes named pipes like so: Named pipes provide one-way or duplex pipes for … Continue reading

Posted in .NET, PowerShell | 1 Comment

PSCX 3.2.0 Available

A new version of the PowerShell Community Extensions was released this morning on CodePlex.  PSCX 3.2.0 is also available on the PowerShell Resource Gallery Preview site which means you can use the new Install-Module command in WMF 5.0 Preview and … Continue reading

Posted in PowerShell, PowerShell 5.0, PSCX | 4 Comments

Windows PowerShell DSC Resource Kit Wave 5–xWindowsOptionalFeature

When PowerShell 4.0 shipped, the major new feature was DSC or Desired State Configuration – a very convenient and declarative way to manage the configuration of your Windows servers.  However as a developer whose IT department doesn’t really allow me … Continue reading

Posted in PowerShell, PowerShell 5.0 | 2 Comments