PowerShell: Tutorial 2, “Teach a Man to Fish” or Working Out The Command You Need

A series of tutorials, or How To Get Started With PowerShell:  “It’s Awesome” edition.

The title was originally built around “Teach A Man A Cmdlet and he PowerShells for a day;  Teach a Man to Use Get-Command and he PowerShell’s for a lifetime.”  But it got more and more clumsy and convoluted so I finally decided that there really was a limit to my own cleverness.

PowerShell really is quite clever though and makes it really easy to work out the cmdlets you want to use for any task. Continue reading “PowerShell: Tutorial 2, “Teach a Man to Fish” or Working Out The Command You Need”

PowerShell: Tutorial 1, Everything is an Object

A series of tutorials, or How To Get Started With PowerShell:  “It’s Awesome” edition.

When I thought about what I considered the most important, fundamental thing to learn about PowerShell I went through a couple of options;  Piping?  The help system and Get-Command?  -WhatIf?

All useful things to learn but it has to be how everything in PowerShell is an object.  It’s how you can build Really Cool Stuff from lots of simple bits and it’s also the thing that catches me out occasionally. Continue reading “PowerShell: Tutorial 1, Everything is an Object”