Monthly Archives: May 2011

PowerShell Basics: 3 When not to use PowerShell

Is there a time when you shouldn’t use PowerShell – No Is there a time when there might be better alternatives – Yes I can think of a number of situations where writing a PowerShell script may not be the … Continue reading

Posted in Powershell Basics | Leave a comment

PowerShell Basics: 2 Utility cmdlets

  The utility cmdlets are the glue that we use to bind our actions together on the PowerShell pipeline. We can easily discover the list of utility cmdlets by using Get-Command *-object I split the utility cmdlets into two groups.  … Continue reading

Posted in Powershell Basics | Leave a comment

Advanced Function Template typo

Just discovered a typo in the advanced function template I posted. http://msmvps.com/blogs/richardsiddaway/archive/2011/05/24/advanced-function-template.aspx It should be function aaaa-yyyyyy{ [CmdletBinding(SupportsShouldProcess=$true,     ConfirmImpact=”Medium Low High None”,     DefaultParameterSetName=”XXXXX”)] param ( [parameter(Position=0,   Mandatory=$true,   ParameterSetName=”YYYYYYYYYY”,   ValueFromPipeline=$true,    ValueFromPipelineByPropertyName=$true,   ValueFromRemainingArguments=$true,   HelpMessage=”Put your message here” )]   [Alias(“CN”, … Continue reading

Posted in PowerShell V2 | Leave a comment

PowerShell UG–June 2011 reminder

Don’t forget to add the June meeting of the UK PowerShell User group to your calendar.  Its June 21 at 7.30pm BST. Details available from http://msmvps.com/blogs/richardsiddaway/archive/2011/05/10/powershell-uk-user-group-june-meeting.aspx

Posted in PowerShell User Group | Leave a comment

Hardware Update

Last year I bought a Lenovo W510 to use as my mobile(ish) Hyper-V lab.  I mentioned the initial problems I’d had with core parking – http://msmvps.com/blogs/richardsiddaway/archive/2010/08/06/lenovo-w510-hyper-v-and-bsod.aspx Once those were resolved I haven’t had any other problems with it.  I never … Continue reading

Posted in Technology | Leave a comment

PowerShell Basics: 1 What is PowerShell?

Discussions at the PowerShell Deep Dive and the entries for the Scripting Games showed me that there is tremendous amount of interest in PowerShell but that there are a lot of people that are still unsure of how to get … Continue reading

Posted in Powershell Basics | Leave a comment

Manning Deal of the Day–29 May

Today, for one day only, get 50% off PowerShell and WMI MEAP or MEAP+ebook.   The code is dotd0529cc when you order from http://www.manning.com   The same code can be used for PowerShell in Action – second edition and PowerShell … Continue reading

Posted in Books, PowerShell and WMI, PowerShell V2 | Leave a comment

root\wmi–MSBatteryClass

A number of the classes in root\wmi return results from more than one class. That sounds odd but it can be explained by an example. The namespace contains a number of classes related to the battery in laptops gwmi -Namespace … Continue reading

Posted in PowerShell and WMI | Leave a comment

root\wmi – speeding the testing

Testing the individual classes in root\wmi is a pain – so its time for some brute force.  I’ll select a group of classes and test the selection gwmi -Namespace root\wmi -List system* | fw   I can then iterate through … Continue reading

Posted in PowerShell and WMI | Leave a comment

root\wmi – MS_SystemInformation

Continuing our exploration of the murky jungle that is the root\wmi namespace we find a number of classes related to system configuration gwmi -Namespace root\wmi -List *system* | fw   Of theses the only one I could get a respnse … Continue reading

Posted in PowerShell and WMI | Leave a comment