Create a Visual Studio Project for your PowerShell Scripts

Are you eager to take advantage of Visual Studio PowerShell Tools? This video talks about how to create a Visual Studio Solution & Project to help you manage your PowerShell script files. If you’ve already got a set of one-off scripts, that doesn’t necessarily warrant a PowerShell module, but you …

Continue reading

PowerShell Splatting: Overview

Have you ever been writing a PowerShell script, and looked at how wordy and long the command becomes? If so, you’ll want to familiarize yourself with the concept of PowerShell Splatting. This technique allows you to declare your PowerShell cmdlet parameters in a HashTable (aka. dictionary or key-value pairs), and …

Continue reading

Microsoft Visual Studio as a Python IDE

If you’re running the Windows operating system, and doing any type of software development work in VB.NET, C#, PowerShell, MVC, JavaScript, or anything else, you’re most likely familiar with the Visual Studio Integrated Development Environment (IDE). Visual Studio has been known for a long time, as an enterprise-class, reliable, and …

Continue reading

PowerShell: PSReadLine Module

The PSReadLine PowerShell module is a god-send in the world of the PowerShell console host. The console host (powershell.exe) has gotten a lot of flak, over the years, for lacking functionality that most non-Windows users are accustomed to having. Some of the enhancements that you get out-of-box with PSReadLine include: …

Continue reading

Azure RM: Resource Manager or Service Management?

Introduction If you’ve been working with the Microsoft Azure public cloud platform lately, you might be familiar with the terms “Service Management” and “Resource Manager” (Azure RM). These terms refer to two different REST APIs that enable access to Microsoft Azure cloud services. Cloud Services is an ambiguous term, because …

Continue reading

Compress & Extract ZIP Archives with PowerShell

Introduction PowerShell 5.0 includes a module called Microsoft.PowerShell.Archive, which enables you to compress and extract ZIP files from the command line, or inside your PowerShell scripts. If we use the core PowerShell Get-Command, we can dynamically discover the commands that are available inside this module. You should already be familiar …

Continue reading

Writing Interactive Scripts with PowerShell

If you’re authoring PowerShell scripts that are intended to be interactive, there are a couple of very easy ways to ask your users for input. Typically, user input falls into a couple categories: free-form text input, or a list of pre-defined values. We also might need to prompt the user …

Continue reading

Working with CSV Files in PowerShell

If you’re working with data from PowerShell, you have most likely come across the CSV (Comma Separate Values) format. These files are very easy to work with in PowerShell, thanks to the CSV cmdlets. If this is your first time working with CSV files, it’s easy to discover the CSV-related …

Continue reading

Check Your PowerShell Version

If you’re wondering what PowerShell version you’re running, you can easily find this out using a built-in, “automatic variable” called $PSversionTable. For more information about automatic variables in PowerShell, run this command: Get-Help -Name about_Automatic_Variables. Depending on what version of PowerShell you’re running, different features may or may not be …

Continue reading

Still using PowerGUI? Get on the Visual Studio train!

Are you still using the old Quest / Dell PowerGUI tool to author your PowerShell scripts and modules? If so, you may want to consider getting off the PowerGUI train, and hopping onto the Visual Studio 2015 or PowerShell Integrated Scripting Editor (ISE) train! By doing so, you will improve …

Continue reading