PowerShell Hashtable with Example

In this article, we learn what is PowerShell hashtable and how it works, and some important methods that can be used with a hashtable.     What is PowerShell Hashtable? A hashtable in PowerShell is a data collection that stores key-value pairs. It is similar to a dictionary in other programming languages. You can useIn this article, we learn what is PowerShell hashtable and how it works, and some important methods that can be used with a hashtable.     What is PowerShell Hashtable? A hashtable in PowerShell is a data collection that stores key-value pairs. It is similar to a dictionary in other programming languages. You can use […]

Read More…

PowerShell grep with Example

In this article, we discuss do we have any PowerShell grep cmdlet if yes then how to use the same to search for specific strings or regular expressions in one or more files like we have the ‘grep’ command in Unix-like operating systems.     PowerShell grep In PowerShell, you can use the “Select-String” PowerShellIn this article, we discuss do we have any PowerShell grep cmdlet if yes then how to use the same to search for specific strings or regular expressions in one or more files like we have the ‘grep’ command in Unix-like operating systems.     PowerShell grep In PowerShell, you can use the “Select-String” PowerShell […]

Read More…

Run PowerShell script from batch file

In this article, I’ll show you how to run PowerShell script from batch file and how you can run all the PowerShell scripts that exist in a particular folder using a batch file. So let’s start first with how you can run a PowerShell script from the batch file.     Run PowerShell script fromIn this article, I’ll show you how to run PowerShell script from batch file and how you can run all the PowerShell scripts that exist in a particular folder using a batch file. So let’s start first with how you can run a PowerShell script from the batch file.     Run PowerShell script from […]

Read More…

PowerShell functions parameters with Example

In this article, I’ll explain to you what are PowerShell functions parameters and how you can pass the parameter to a PowerShell function. So let’s start creating a PowerShell function and pass parameters to that function.   PowerShell functions parameters In PowerShell, you can define function parameters to accept input values when the function isIn this article, I’ll explain to you what are PowerShell functions parameters and how you can pass the parameter to a PowerShell function. So let’s start creating a PowerShell function and pass parameters to that function.   PowerShell functions parameters In PowerShell, you can define function parameters to accept input values when the function is […]

Read More…

PowerShell try catch

In this article, I’ll explain how to use PowerShell try catch blocks for exception handling. Like any other programming language try and catch block PowerShell have the same syntax.     PowerShell try catch block syntax The Try block contains the code that may throw an exception. If an exception is thrown, control is transferredIn this article, I’ll explain how to use PowerShell try catch blocks for exception handling. Like any other programming language try and catch block PowerShell have the same syntax.     PowerShell try catch block syntax The Try block contains the code that may throw an exception. If an exception is thrown, control is transferred […]

Read More…

PowerShell Loop

In this article, I show you how to write a PowerShell loop. Like any other programming language, PowerShell also has different types of loops like – for loop, foreach loop, while loop and do while. Using these loops you can iterate the collection. So let’s see how to use these PowerShell loops one by one.In this article, I show you how to write a PowerShell loop. Like any other programming language, PowerShell also has different types of loops like – for loop, foreach loop, while loop and do while. Using these loops you can iterate the collection. So let’s see how to use these PowerShell loops one by one. […]

Read More…