Monthly Archives: June 2012

OMI

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 … Continue reading

Posted in PowerShell and WMI | 2 Comments

Free books 27 June 2012

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

Posted in Books | 1 Comment

Write-Host Wrong!

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 … Continue reading

Posted in Powershell Basics | Leave a comment

How do I do X in PowerShell?

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 … Continue reading

Posted in Powershell Basics | Leave a comment

Reminder–UK PowerShell Group–July 2012 meeting

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 … Continue reading

Posted in PowerShell User Group | 2 Comments

WMI property names

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 … Continue reading

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

Pipeline input

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 … Continue reading

Posted in Powershell Basics | Leave a comment