header image

Archive for December, 2014

WMI — identifying writable properties

Posted by: | December 15, 2014 Comments Off on WMI — identifying writable properties |

One common mistake I see is people trying to set the value of a read only property on a WMI class.  There isn’t a quick way to see if a property is writable. Get-CimClass can be used but you have to dig into the Qualifiers for each property.   You can use this function to […]

under: CIM, PowerShell and WMI

Delivering PowerShell code

Posted by: | December 12, 2014 Comments Off on Delivering PowerShell code |

Do you have a need to deliver PowerShell code to multiple machines. I do. I have a dev environment plus test and production environments. I need to move code from dev through test and production.   One way to do this is to create all of your code as modules and use the PowerShell 5.0 […]

under: PowerShell v5

Learning PowerShell

Posted by: | December 10, 2014 Comments Off on Learning PowerShell |

I’ve been thinking about how people learn PowerShell through watching some people at work who are learning it and watching the questions on the forums – many of which start off “I’m new to PowerShell and…”   There seems to be two broad approaches: Option 1 is to get some training. This could be a […]

under: Learning PowerShell

What Formatting cmdlets do to your data

Posted by: | December 9, 2014 Comments Off on What Formatting cmdlets do to your data |

I have seen an increasing number of questions recently where the answer has been to remove Format-Table from the pipeline. As an example consider the names of the processes running on your machine Get-Process -Name calc | Stop-Process   works because you are piping the selected object into the Stop-Process cmdlet. Now think about this […]

under: PowerShell Basics

« Newer Posts