Jeff Wouters's Blog

While working on my TrellOps module, one of the things I needed was a way to teach people the Fibonacci sequence.
So whenever in doubt, I told them to use this little function 🙂

function Get-Fibonacci ([int32]$m) {
    $c,$p = 1
    while ($c -le $m) {
        $c
        $c,$p = ($c + $p),$c
    }
}
Get-Fibonacci 50
Leave a Comment more...

This is something I thought about, never had the need to, so figured out how to 🙂

For WMI:

Get-WMIObject -Class __Namespace -Namespace root

For CIM:

Get-Ciminstance -ClassName __Namespace -Namespace root
Leave a Comment more...