header image

Archive for May, 2012

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

under: PowerShell V3, Windows 8 Server

  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 end point customisation 2011 11 Whats new in PowerCLI 5 2011 12 Intro to WMI […]

under: PowerShell User Group, PowerShell V3, Windows 8 Server

I need to test the existence of an element in a hash table. First create a hash table $myht = DATA { ConvertFrom-StringData -StringData @’ 1 = aaaaaaa 2 = bbbbbbb 3 = ccccccc 4 = ddddddd 5 = eeeeeee ‘@ }   I tend to create them using ConvertFrom-StringData as it simplifies typing, I […]

under: PowerShell Basics

PowerShell v3 ISE

Posted by: | May 28, 2012 | No Comment |

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 jumping between PowerShell v2 and v3 recently the single console pane has grown on me […]

under: PowerShell V3

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

under: PowerShell User Group, PowerShell V3, Windows 8 Server

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 of doing things. We will experiment with the BITS service as it is safe for […]

under: PowerShell and WMI, PowerShell V3, PowerShellV2

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 the online version is available at http://technet.microsoft.com/en-us/library/hh849924.aspx To test it I downloaded the PowerShell v2 […]

under: File System, PowerShell V3

WMI providers

Posted by: | May 23, 2012 | No Comment |

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 I got back to the old favourite __provider. Get-CimInstance -Class __provider | Measure-Object produces an […]

under: PowerShell and WMI, 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 parameter (positional as 1 so don’t have to use it) supplies a script block that […]

under: PowerShell V3

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

under: PowerShell User Group

Older Posts »

Categories