Tags » Powershell-basics

Count property

Its frequently said that PowerShell is so big that no one can know everything about it. I proved that today when I “discovered” a change in PowerShell of which I wasn’t aware. 204 more words

Powershell Basics


I was asked about foreach today and responded with a description of who foreach-object works. Thinking about it I should have realised that part of the issue with foreach is the confusion that arises between foreach and foreach – – that is the difference between the foreach PowerShell statement and the foreach alias of the foreach-object cmdlet. 1,132 more words

Powershell Basics

Can it -whatif

One of the nice things about PowerShell is that it can help you prevent mistakes. Many of the cmdlets that make changes to you system have a –whatif parameter that allows you to test your actions: 162 more words

Powershell Basics

Select-Object or Where-Object

Both Select-Object and Where-Object (referred to by their aliases of select and where from now on) are both used to filter data.

It is important to know the way these 2 cmdlets are used. 154 more words

Powershell Basics

Invoke-Item tips

Invoke-Item is another cmdlet that you don’t see used that often but there is one place where its invaluable – opening files. If you give Invoke-Item the path to a file… 68 more words

Powershell Basics

PowerShell Objects Part 1: No More Parsing!

One of the first things to know about PowerShell in order to wield it effectively is its object-based paradigm. If you are trying to parse strings in PowerShell scripts, it’s likely that there is a better way. 720 more words


and finally

If you’re old enough and seen UK TV you’ll recognise the title but this post is about using try – catch blocks.

Using try-catch this is a fairly normal construction… 433 more words

Powershell Basics