Home/Powershell
1002, 2018

Power Shell – Containment Operators

By |Tags: , , , , , , , , , |1 Comment

Power Shell Containment Operators The containment operators (-contains and -notcontains) are similar to the equal operators. However, the containment operators always return a Boolean value, even when the input is a collection. The conditional operator -Contains

2901, 2018

PowerShell : Do-While & Do-Until Loop

By |Tags: , , , , , , , |0 Comments

Do-While & Do-Until Loop in PowerShell Loops are an essential construct in any programming language as they enable a block of code to be repeatedly executed based on the condition. This can be useful for

2001, 2018

PowerShell – Replacement Operator

By |Tags: , , , , , , , , |0 Comments

Replacement Operator PowerShell provides several options to help you replace text in a string with other text. The -replace operator replaces all or part of a value with the specified value using regular expressions. It replaces every

701, 2018

PowerShell Basics: Comparison Operators and Conditional Logic

By |Tags: , , , , , , , , , , , , |0 Comments

Comparison Operators and Conditional Logic Comparison operators let you specify conditions for comparing values and finding values that match specified patterns. To use a comparison operator, specify the values that you want to compare together

701, 2018

PowerShell – Sorting in Array

By |Tags: , , , , , , , , , , , , , |0 Comments

Sort array: It's very easy of arranging the elements of an array in a order with PowerShell. Just we need to do is pipe the output of an array to the Sort-Object cmdlet: The default sort