Category: Powershell

PowerShell ConvertFrom-JSON

PowerShell ConvertFrom-JSON JSON is the JavaScript Object Notation.  PowerShell version 3.0 introduced a special cmdlet to handle text formatted for JavaScript. Topics for PowerShell's ConvertFrom-JSON Key PowerShell Concept: Here-String @"…"@ PowerShell JSON Example More Information about ConvertFrom-JSON  ♣ Introduction to ConvertFrom-JSON JSON (JavaScript Object Notation) is designed for data exchange; …

PowerShell Here-String

PowerShell Here-String Here-String is a concept rather than an actual PowerShell cmdlet.  It deals with handling text strings countaining speech marks. Topics for Here-String in PowerShell Concept: Here-String @"…"@ PowerShell JSON Example Also ConvertFrom-JSON  ♣ Concept: Here-String @"…"@ The Here-String construction provides an easy way for handling text, it's speciality …

PowerShell WMI Classes

Types of WMI Class in PowerShell Windows Management Instrumentation (WMI) provides a way of accessing details of your operating system that are normally hidden from the Control Panel, Device manager or Windows Explorer.  Every time I review WMI it amazes me the number and variety of these probes, or WMI …

PowerShell [WMI] Type

Introduction to PowerShell’s Type The Type technique is not for the beginner, for novices I suggest they concentrate on Get-WmiObject.  Even for experienced PowerShell script writers I question the usefulness of the Type construction.  While it looks flashy, the syntax is picky, therefore I am not sure that it is …

Windows PowerShell v3 Modules

Introduction to PowerShell v3 Modules Knowledge of modules is particularly important in PowerShell v3, because the cmdlets they contain extend the range of tasks we can achieve through scripting.  Incidentally, modules also explains how people arrive at different tallies for cmdlets in PowerShell v3; the precise number depends on how …

PowerShell -Filter Parameter

PowerShell -Filter WMI Parameter PowerShell’s -filter is an alternative solution to the | Where-Object {$_.clause} when sieving data.  Using -filter instead of ‘Where’ is a classic case of when you find a good technique, look for an even better modus operandi. Topics for PowerShell Filters PowerShell Filter Files PowerShell Get-WmiObject …

Windows PowerShell Write-Host

Windows PowerShell Write-Host PowerShell’s Write-Host is similar to the VBScript command WScript.Echo command. My advice is only use this command if you have a compelling reason to see stuff displayed on a monitor.  I find that the underlying commands work fine without preceding them with Write-Host.  Furthermore, Write-Host occasionally causes …

PowerShell 3.0 Update-Help

Update-Help in Windows PowerShell 3.0 The idea of getting extra information about PowerShell 3.0 cmdlets is great; however, using Update-Help is by no means straightforward. Update-Help – New Cmdlet in PowerShell 3.0 Getting Help for Update-Help! Troubleshooting Update-Help Scheduling Update Help Get-Hotfix  ♦ Update-Help – New Cmdlet in PowerShell 3.0 …