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

Subscribe to E-mail Updates for GitHub Project Releases

If you’re like me, you probably like to ensure that your software is up-to-date on your system at all times. I’m a heavy user of the Microsoft Azure PowerShell automation module, which is actively developed on a GitHub source code repository. I need to make sure that I am promptly …

Continue reading

PowerShell ISE: Jump to Column Feature

If you’re a developer, or even just a frequent user of a text editor, you’re probably familiar with the “Jump to Line” feature of most text editing software. The Microsoft Windows PowerShell Integrated Scripting Editor (ISE) offers such a feature, which is commonly mapped to the CTRL + G keyboard …

Continue reading

Import-DscResource Warning Message in WMF 5.0 April 2015 Preview

The latest version of the Microsoft Windows Management Framework (WMF) Core 5.0 package has some improvements to the PowerShell and Desired State Configuration (DSC) experience. One of those improvements is a warning message that will appear, if you do not use the Import-DscResource dynamic keyword to import the PSDesiredStateConfiguration module. …

Continue reading

Azure PowerShell 0.9.0 Released with Azure Resource Manager!

During the Microsoft //BUILD 2015 conference in San Francisco, California, they have released the newest version of the Microsoft Azure PowerShell module! The version is 0.9.0, and is dated April 2015. You can download the stand-alone Windows Installer (MSI) package from the GitHub releases page. Azure Resource Manager (ARM) The …

Continue reading