PowerShell Summit NA 2015 speakers

Want to learn a bit more about some of the speakers at the PowerShell Summit?  Head over to the Scripting Guy blog – http://blogs.technet.com/b/heyscriptingguy/ – to see a series of posts giving you some background, and pictures, of a number of speakers.

Posted in Powershell, Summit | Leave a comment

Query vs Filter

I’ve tended to advocate using the –Filter parameter rather than the –Query parameter with the CIM (and WMI) cmdlets but a recent post on the Windows Management Infrastructure blog has me questioning that decision.

Using Measure-Command I tried various pairs of commands – such as:

Measure-Command {Get-CimInstance -ClassName Win32_Directory -Filter “Name = ‘C:\\Test2′”}

Measure-Command {Get-CimInstance -Query “SELECT * FROM Win32_Directory WHERE Name = ‘C:\\Test2′”}

The results weren’t conclusive but it seems that at worst there is no significant difference between the approaches and at best using a query is significantly faster. 

At the moment my best advice would be use the –Filter parameter if you want to reduce typing but try –Query if speed becomes your main issue.

Posted in CIM, PowerShell and WMI | Leave a comment

MVP renewal

April 1st comes round again and its time for the MVP renewals. I received my renewal email this afternoon – I feel highly honoured that Microsoft have bestowed an MVP award for 8 straight years.

Thank you

Posted in General | Leave a comment

PowerShell Europe 2015 Agenda

As has been announced registration for the PowerShell Summit Europe 2015 opens on 27 February 2015. http://powershell.org/wp/2015/02/20/powershell-summit-europe-registration/

Other details on the Summit can be found here:  http://powershell.org/wp/community-events/summit/powershell-summit-europe-2015/

The agenda for the Summit can be found on the event site for the Summit http://eventmgr.azurewebsites.net/event/home/PSEU15

Posted in European Summit, Powershell | Leave a comment

Change to DSC Resource Kit release strategy

The PowerShell team blog http://blogs.msdn.com/b/powershell/archive/2015/02/13/new-and-improved-resource-kit.aspx details the new resources and bug fixes in wave 10 of the DSC resource kit. This is a much smaller release than the of late but includes new resources for initializing and formatting disks

IMPORTANT NOTE

One point the “small print” is important to note. This is the last release of these resource as a big zip file for download from the TechNet script gallery. In future these resources will only be available through the PowerShell gallery. Use Find-DscResource to discover the resources available in the gallery and Update-Module & Install-module to get the modules containing resources from the gallery.

Posted in Desired State Configuration, PowerShell v5, WMFv5 | Leave a comment

DSC Resource Kit Wave 10

The next release (wave 10) of the Desired State Resource Kit is available. You can download the whole of the resource kit from https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d

This version includes the IIS resources that were missing in wave 9

Posted in PowerShell v5, WMFv5 | Leave a comment

WMF 5.0 February 2015 preview

A new preview of Windows Management Framework 5.0 (PowerShell) is available. See http://blogs.msdn.com/b/powershell/archive/2015/02/18/windows-management-framework-5-0-preview-february-2015-is-now-available.aspx

for details. The release notes indicate which new features are considered stable and which are still regarded as experimental and therefore subject to change.

Downloads are available for Windows 8.1 (x32 and x64), Windows Server 2012 R2  Windows 2012. You will need .NET 4.5 installed.

Posted in PowerShell v5, WMFv5 | Leave a comment