Wordpress - unlockpowershell.wordpress.com - Unlock-PowerShell
General Information:
Latest News:
Modify PowerGUI snippets to function in the PowerShell ISE 23 May 2013 | 07:22 am
Recently I discovered Glen Scales post “EWS Snippets for PowerGui” Although PowerGUI now works with version 3 of PowerShell, I am still using the PowerShell ISE for script development. So, I wrote a s...
PowerShell Version 3 if..else bug 22 Aug 2012 | 06:43 am
Consider the following from PowerShell’s excellent help: Get-Help about_If 001002003004005006007008 if ($a -gt 2) { Write-Host “The value $a is greater than 2.”}else{ Write-Host “The value $a is...
Quick modification of the Compare-Command.ps1 script 9 Aug 2012 | 07:56 am
I found a few issues with my Compare-Command script, and have resolved them. If you have already downloaded it from TechNet, thanks, and you can just modify the following two lines: Line 72 becomes:$V...
Quickly compare PowerShell V2 and V3 cmdlets 8 Aug 2012 | 07:27 am
Recently, I was looking for the difference between the Get-ChildItem cmdlet in Version 2 and Version 3 of Windows PowerShell. Although you can Bing “PowerShell Get-ChildItem v3” and get an accurate li...
Got-Bug? Connect it! 19 Jun 2012 | 11:06 am
I have been running the various versions of PowerShell 3 since the first Windows 8 developer preview was released, and started using the PowerShell ISE at the same time, as PowerGUI was not compatible...
PowerShell V3 Console improvement 7 Jan 2012 | 05:18 pm
This may not seem earth shattering, but it’s major news in my world (I’m a 1 finger typist) In the V3 CTP, you now have the ability to use autocomplete in the console, in the middle of a line without...
Print from PowerShell’s Integrated Scripting Environment 31 Dec 2011 | 03:39 pm
Since I started working with the PowerShell V# CTP, I have been using the ISE instead of PowerGUI’s script editor, as PowerGUI does not yet support .Net version 4, which is required by PowerShell V3. ...
PowerShell WMI Gather DNS settings for all Servers 24 Dec 2011 | 05:19 pm
A question came up on TechNet: “I am new to PowerShell and need a wmi script to query all the servers on my network for there dns settings and dump it out to a text file. Would someone be able to he...
PowerShell V.Next: Simplified Where-Object and ForEach-Object 21 Dec 2011 | 05:28 pm
I was perusing the samples that come with the PowerShell V3 CTP (Samples\WindowsPowerShell) when I noticed a folder called “Simplified Foreach and Where” Lo and behold, you no longer need curly brac...
Share-Story | Win-Prize 20 Dec 2011 | 03:20 pm
PowerShell Magazine is currently soliciting articles for a series called “How I Learned to Stop Worrying and Love Windows PowerShell”. Anyone can submit an article and potentially win a TrainSignal P...