PowerShell for loops are used to navigate within the collection to retrieve it’s elements and allows to execute the statements within it continuously, when the given condition met. Through this article, we are going to discuss about For and ForEach loops. The for loop in PowerShell PowerShell for loop is used to execute the statements […]
PowerShell – Understanding the While loops
PowerShell provides loops to execute the sequence of statements repeatedly. These loops executes the block of statements within it, till a given condition is satisfied. Through this article, we go through while loop and do loops; do…while and do…until loops. While loop PowerShell While loop is to execute the statements within it continuously, if the […]
PowerShell – Matching operators – To find matching entries
PowerShell Matching operators are used to find the entries which matches or do not matches the given criteria. Matching operators These operators can be used on multiple operands. When we use multiple operands; the operands should be separated by a comma (“,”). Multiple operands can be used only on left side; right side is a […]
PowerShell – How to use Equality operators?
PowerShell equality operators are used to compare values. These operators compare the values and return either True or False; when the given condition matches. PowerShell provides below equality operators; as these are used for comparison, we can call them Comparison operators. PowerShell Equality operators All these equality operators takes 2 or more operands and compare […]
PowerShell – Bitwise Shift Operators
PowerShell offers bitwise shift operators too. We have discussed about “PowerShell – Bitwise Logical Operators” in our previous article. Through this article, we are going to discuss about bitwise shift operators. Shift left -shl operator PowerShell left shift operator shifts the bits left side. This operator takes two operands and left shifts the bits from […]
PowerShell – Bitwise Logical Operators
PowerShell provides below list of Bitwise operators and these ONLY works on Integer types. Why only Integer types? Because, these operators works on bits (0s and 1s) and only numeric types can support bitwise operations. Bitwise AND -band operator This operator takes two operands as inputs and apply the bitwise AND operation on each bit […]
PowerShell – Assignment operators
Basic Assignment operator, equal (=) sign is used to assign a value from right side value to it’s left side operand. PowerShell provides more such operators to assign the values from r-value to l-value. We are going to discuss about these operators through this Article. Most important thing you need to remember is, all these […]
PowerShell – Arithemetic Operators
PowerShell provides different types of operators and through this article, we are going to discuss about Arithmetic Operators. Arithmetic Operators are used to compute numerical values. Before stating this article, would like to emphasis on one thing; that is, PowerShell is built on .Net Core; internally it uses .Net Core classes. We need to understand […]
PowerShell – How to create files and folders?
PowerShell provides command(s) to create files and folders. Through this article, we are going to discuss how to create files and folders using PowerShell command(s). New-Item cmdlet – Create files and folders PowerShell cmdlet, New-Item is used to create files and folders. This command not only creates the files, it also add initial content to […]
PowerShell – Hash tables
PowerShell Hash tables or dictionaries are used to store the data in (key, value) pairs. Hash tables are very useful to retrieve the data. As it maintains, (key, value) pairs; the data structure supports fast access to find or retrieve the data. We can also call Hash tables as associative Arrays. Creating Hash tables As […]