header image

Archive for June, 2012

OMI

Posted by: | June 28, 2012 | 1 Comment |

You may have noticed that I mention WMI from time to time   Up to now WMI has been a Windows technology. Powerful but limited to Windows.  WMI has taken a giant step into the big bad world with the creation of OMI – Open Management Infrastructure thats WMI for non-Windows systems Details are here […]

under: PowerShell and WMI

Free books 27 June 2012

Posted by: | June 27, 2012 | 1 Comment |

Want some free ebooks? Check out http://social.technet.microsoft.com/wiki/contents/articles/11608.e-book-gallery-for-microsoft-technologies-en-us.aspx#Configure%20Kerberos%20Authentication%20for%20SharePoint%202010%20Products

under: Books

Write-Host Wrong!

Posted by: | June 26, 2012 | No Comment |

Many scripting languages require you explicitly write out to screen – VBScript was an example. This leads to PowerShell that looks like this Get-Service | foreach {   Write-Host $_.Name, $_.Status } This is bad on so many levels. Firstly you are doing too much work. Secondly you are emitting text not objects. Thirdly you […]

under: PowerShell Basics

Many forum questions revolve around that question.  In some cases the answer is that its not possible. It might not be possible because PowerShell itself can’t do something BUT it is much more likely that there just isn’t away to do that particular action programmatically (through a script). Its always a good idea to work […]

under: PowerShell Basics

When: Wednesday, Jul 4, 2012 8:30 PM (BST)Where: Virtual *~*~*~*~*~*~*~*~*~* Jonathan Medd will be talking about using PowerShell to administer a XenDesktop environment Notes Richard Siddaway has invited you to attend an online meeting using Live Meeting.Join the meeting.Audio InformationComputer AudioTo use computer audio, you need speakers and microphone, or a headset. First Time Users:To […]

under: PowerShell User Group

WMI property names

Posted by: | June 24, 2012 | No Comment |

A question brought it home to me that WMI property names don’t always mean what you might think they mean – this is also true of other objects but I tripped over this one with WMI so we’ll stick with that. PS> Get-CimInstance -ClassName Win32_Desktop -Filter "Name LIKE ‘%Richard’" | >> Format-List ScreenSaver* >> ScreenSaverActive     […]

under: PowerShell and WMI, PowerShell V3, PowerShellV2

Pipeline input

Posted by: | June 13, 2012 | 2 Comments |

A question on the forum asked about creating a function that accepts pipeline input OR has a path parameter.  Means it can be used like this myfunction -Path C:\scripts\Test\proc.csv or (Get-Content C:\scripts\Test\files.txt) | myfunction First create a csv file Get-Process | Export-Csv proc.csv –NoTypeInformation and test its contents Import-Csv proc.csv The full path to the […]

under: PowerShell Basics

When: Wednesday, Jul 4, 2012 8:30 PM (BST)Where: Virtual *~*~*~*~*~*~*~*~*~* Jonathan Medd will be talking about using PowerShell to administer a XenDesktop environment Notes Richard Siddaway has invited you to attend an online meeting using Live Meeting.Join the meeting.Audio InformationComputer AudioTo use computer audio, you need speakers and microphone, or a headset. First Time Users:To […]

under: PowerShell User Group

Colossus

Posted by: | June 10, 2012 | 1 Comment |

I went to Bletchley Park today – http://www.bletchleypark.org.uk/ One of the exhibits there is the Colossus machine – regarded as the World’s first computer. Imagine a machine that has 2 rows of electronics each 5 racks wide by 1 rack high.  All of this delivers the computing power of a pentium 2 chip and consumes […]

under: General

I’ve been on two international trips this year – one to San Diego & one to Vienna flying out of London Heathrow and London Gatwick respectively. Both San Diego and Vienna supply free wireless connectivity that works. Heathrow and Gatwick don’t – isn’t it about time they entered at least the 20th century

under: Rant

Older Posts »

Categories