How to Convert Base64 String to Text in PowerShell?

Convert Base64 String to Text in PowerShell

Recently, someone in the PowerShell development team asked me to convert the Base64 string to text in Powershell. I explained how to do this using various methods. In this tutorial, I will show you how to convert Base64 string to text in PowerShell with examples. To convert a Base64 string to text in PowerShell, you … Read more

How to Replace Text in Strings Using PowerShell?

Replace Text in Strings Using PowerShell

This will be useful if you are working with strings in PowerShell automation. Here, I have explained, how to replace text in strings using PowerShell using different methods. To replace text in strings using PowerShell, you can use the Replace() method for simple, case-sensitive replacements or the -replace operator for more complex, case-insensitive, and regex-based … Read more

How to Convert String to Object in PowerShell?

Convert String to Object in PowerShell

Recently, a PowerShell developer asked me how to convert a string to an object in PowerShell. I explained different methods with examples. In this tutorial, I will show you how to convert string to object in PowerShell with complete examples. To convert a string to an object in PowerShell using the ConvertFrom-Csv cmdlet, you can … Read more

How to Convert String to Date in PowerShell?

Convert String to Date in PowerShell

One of my team members recently searched for a solution to convert a string to a date in PowerShell. I suggested different methods. In this tutorial, I will show you how to convert a string to a date in PowerShell with examples. To convert a string to a date in PowerShell, you can use the [datetime] type … Read more

How to Convert String to Base64 in PowerShell?

Convert String to Base64 in PowerShell

Recently, my client asked us for a requirement to convert string to base64. We used PowerShell for this. In this tutorial, I will show you how to convert string to base64 in PowerShell using different methods with examples. To convert a string to Base64 in PowerShell, you can use the [System.Convert] class. First, convert the … Read more

How to Convert Object to String in PowerShell?

Convert Object to String in PowerShell

If you are working with strings in PowerShell and want to know how to convert objects to strings in PowerShell, check out this complete tutorial. I have explained the process in detail with examples. To convert an object to a string in PowerShell, you can use the Out-String cmdlet, the -join operator, or the ToString() … Read more

How to Convert String to Double in PowerShell?

Convert String to Double in PowerShell

Recently, one of my team members was struggling to convert a string to double in PowerShell. I suggested a few methods and showed some examples. In this tutorial, I will explain how to convert string to double in PowerShell using various methods. To convert a string to a double in PowerShell, you can use type … Read more

How to Extract Text from Strings Between Delimiters Using PowerShell?

Extract Text from Strings Between Delimiters Using PowerShell

Today, I will show you a few interesting examples. In this tutorial, I will show you how to extract text from strings between delimiters using PowerShell. To extract text between delimiters using PowerShell, you can use several methods, including the -split operator, regular expressions with Select-String, Substring and IndexOf methods, or custom functions. For example, … Read more

How to Replace Placeholders in Strings Using PowerShell?

Replace Placeholders in Strings Using PowerShell

I was working on a PowerShell script recently, where I used different methods to replace placeholders in strings. I thought I would share it with you. In this tutorial, I will show you how to replace placeholders in strings using PowerShell. To replace placeholders in strings using PowerShell, you can use the -replace operator, which … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.