Monthly Archives: May 2012

Scheduled tasks on clusters

This post shows how to use PowerShell in Windows Server 2012 to configure scheduled tasks that apply across the whole cluster not just a single node http://blogs.msdn.com/b/clustering/archive/2012/05/31/10312527.aspx Well worth a read

Posted in PowerShell V3, Windows 8 Server | Leave a comment

May 2012 Powershell group recording and slides

  The recording, slides and demo scripts from last nights session  – Powershell in Windows Server 8 part 2  – is available from https://skydrive.live.com/?cid=43cfa46a74cf3e96#cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212966 The full set of historical recordings can be found here: https://skydrive.live.com/#cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212469 2011 09 PowerShell remoting and … Continue reading

Posted in PowerShell User Group, PowerShell V3, Windows 8 Server | Leave a comment

Some thoughts on hash tables

I need to test the existence of an element in a hash table. First create a hash table $myht = DATA {ConvertFrom-StringData -StringData @’1 = aaaaaaa2 = bbbbbbb 3 = ccccccc4 = ddddddd5 = eeeeeee ‘@}   I tend to … Continue reading

Posted in Powershell Basics | 3 Comments

PowerShell v3 ISE

The ISE has a new look in PowerShell v3. The scripting pane remains but the output and interactive panes have been amalgamated to produce a single console like pane. When I first saw it I didn’t like it but after … Continue reading

Posted in PowerShell V3 | Leave a comment

May UG meeting reminder

Quick reminder that the UK PowerShell group session on PowerShell in Windows 2012 is on Tuesday 29 May. Details from http://msmvps.com/blogs/richardsiddaway/archive/2012/05/08/uk-powershell-group-may-2012.aspx

Posted in PowerShell User Group, PowerShell V3, Windows 8 Server | Leave a comment

Working with WMI methods

Many WMI classes have methods. Methods allow us to perform some action on the object. A recent question on the forum about using methods made me realise that there are still a lot of people following the old VBScript way … Continue reading

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

Unblocking Files with PowerShell v3

There are a number of new features in PowerShell v3 that while not huge like CIM or workflow are os significant help to the hard pressed administrator.  One of these is the Unblock-File cmdlet. If you haven’t updated your help … Continue reading

Posted in File system, PowerShell V3 | 1 Comment

WMI providers

I found a class new to me – Msft_Providers and this got me interested in WMI providers. PS> Get-CimInstance -Class Msft_Providers | select -ExpandProperty provider Msft_ProviderSubSystem SCM Event Provider WmiPerfClass   That seems a bit low. Digging a bit more … Continue reading

Posted in PowerShell and WMI, PowerShell V3 | Leave a comment

Where-object in PowerShell v3

Where-Object – aliased to where, but never, ever, ever, ever to ? – had a very simple syntax in PowerShell v2 Where-Object [-FilterScript] <scriptblock> [-InputObject <psobject>] [<CommonParameters>] It was normally used as Get-Process | where {$_.CPU -gt 25} The –FilterScript … Continue reading

Posted in PowerShell V3 | 3 Comments

UK PowerShell group–next two meetings

29 May 2012 PowerShell and Windows server 2012 – new functionality pt 2 http://msmvps.com/blogs/richardsiddaway/archive/2012/05/08/uk-powershell-group-may-2012.aspx   4 July Jonathan Medd XenDesktop and PowerShell This will be at the slightly later time of 8.30 BST.  Details to follow

Posted in PowerShell User Group | Leave a comment