Category: Powershell

PowerShell 3.0 Where Statement

PowerShell 3.0 Where Clause Simplified PowerShell 3.0 simplifies the ‘Where’ clause by not requiring either the {curly} brackets or the placeholder $_.xyz.  The benefit is that it makes easier for beginners to write PowerShell scripts. PowerShell 3.0 Where Examples of the New Syntax Example 1: PowerShell v 3.0 Where Example …

PowerShell Function Get-WMIClass

How to Filter the WMI Classes My aim is to provide an easy way to search for a class amongst the 800+ WMI (Windows management instrumentation) objects. I will provide instructions for creating a Windows PowerShell function; in particular I want to highlight creating parameters. Guy's Get-WMIClass Function (Cmdlet) Planning …

Show-Command PowerShell 3.0

Show-Command PowerShell 3.0 Show-Command is a new way for researching the parameters and syntax of other PowerShell cmdlets.  In this tutorial you will see how to filter using ‘Modules’, then examine the cmdlet properties in a ‘Form’. Show-Command Syntax How to Launch Windows PowerShell ISE PowerShell 3.0 in Windows 8 …

PowerShell Measure-Command Cmdlet

PowerShell Measure-Command When I want to improve the speed of my scripts I employ Measure-Command to count time.  There is a sister cmdlet called Measure-Object which deals with maths, such as counting files. Topics for Measure-Command This is PowerShell's equivalent of 'Time' in Bash; Measure-Command is a more convenient than …

PowerShell CodePlex Install

How To Install PowerShell CodePlex Modules The CodePlex extensions are a collection of scripts developed by members of the PowerShell community.  Their mission is to extend PowerShell capabilities by providing extra cmdlets and functions. Topics For PowerShell CodePlex Extensions Installing CodePlex for PowerShell Check The Installed CodePlex Module Here is …

PowerShell 3.0 CIM and WMI

Windows CIM in PowerShell This article is designed for PowerShell beginners who are interested to learn about practical similarities and differences between CIM in PowerShell 3.0 and WMI in PowerShell 2.0. My mission is to provide concrete examples to illustrate CIM and WMI. PowerShell 3.0 CIM PowerShell 3.0 CIM Family …

PowerShell Get-PSProvider

An Introduction Get-PSProvider I find the best way to explain PowerShell’s Providers is to start with the filesystem.  I understand how Get-ChildItem views the  C:\ drive; and I see how to extend the filesystem to include network drives. Now it’s only a short step to appreciate how the registry could …