How to Add Items to an Array in PowerShell (5 Simple Methods)

powershell add item to array

Recently, I was developing an automation script to manage a large inventory of servers, and I needed to add items to an array as the script ran dynamically. The challenge is that PowerShell handles arrays differently than many other programming languages. In this tutorial, I will show you five proven methods to add items to … read more…

PowerShell Test-Path: How to Verify File and Folder Existence

PowerShell Test-Path Example

The PowerShell Test-Path cmdlet is used for checking if a file or folder exists on your computer. It returns “true” if the path exists and “false” otherwise, so you can quickly confirm file locations before running commands or scripts. This saves time and helps avoid annoying errors when you’re dealing with files and directories. PowerShell … read more…

PowerShell Write to File UTF-8: Complete Guide with Examples

PowerShell Write to File UTF-8

When working with PowerShell scripts, I often need to output data to text files. Over the years, I have learned that using the correct encoding, particularly UTF-8, is crucial for handling special characters and international text accurately. In this tutorial, I’ll show you multiple methods to write data to files using UTF-8 encoding in PowerShell. … read more…

How to Write to a File in a PowerShell Loop (5 Efficient Methods)

powershell write to file in loop

When working with PowerShell automation, I often need to process data in loops and write the results to files. This is a common requirement when generating reports, logging application activities, or processing batches of data. Over my years of PowerShell experience, I’ve discovered several effective approaches to writing data to files within loops. In this … read more…

PowerShell Execution Policy: A Comprehensive Guide

powershell set execution policy

Have you encountered an error “execution of scripts is disabled on this system” while trying to run a PowerShell script? I am sure you must have at least at the beginning. This is because of PowerShell’s execution policy settings. In this article, I will walk you through everything you need to know about PowerShell execution … read more…

How to Write to File without Carriage Return in PowerShell

"More text added" | Out-File -FilePath C:\Bijay\output.txt -Append -NoNewline

Recently, I was working on a PowerShell script that needed to output data to a file in a very specific format. The challenge was that I needed to write content to a file without adding carriage returns (line breaks) at the end of each line. This can be particularly important when you’re generating configuration files, … read more…

How to Append Text to Files in PowerShell

Append Text to Files in PowerShell

As a PowerShell user, I’ve found that one of the most common tasks is writing data to files, especially appending content to existing files without overwriting previous information. This will be helpful in scenarios such as creating logs, generating reports, or saving script output, etc. In this tutorial, I’ll walk you through the different methods … read more…

PowerShell Write to File [With Examples]

powershell write to file

If you are working as a PowerShell administrator, then you should know how to write to a file in PowerShell. PowerShell provides different methods for writing to files. I will show you here how to write data to a file using PowerShell, using different methods and examples. Method 1: Using Out-File Cmdlet The Out-File cmdlet … read more…

Reference Variables in PowerShell

powershell reference variable

Are you looking to learn how to manipulate variables more dynamically in PowerShell? The answer is the PowerShell reference variables. I’ve used this many times as a PowerShell developer with years of experience. Let me explain how to use reference variables in PowerShell with some examples. What Are PowerShell Reference Variables? In PowerShell, variables typically … read more…

PowerShell Array of Strings

PowerShell Array of Strings

As a PowerShell developer with years of experience, I’ve found that arrays are one of the most powerful data structures available in PowerShell. In this tutorial, I’ll explain everything you need to know about working with arrays of strings in PowerShell with examples. What is a PowerShell Array? An array is a data structure that … read more…

PowerShell Array – Complete Tutorial

powershell array

I have been working with PowerShell for the last 12 – 15 years. One thing I use frequently is arrays in PowerShell. As a PowerShell developer, you should know about PowerShell arrays. In this tutorial, I will explain the PowerShell array, including its definition, syntax, examples, and more. Arrays in PowerShell are powerful data structures … read more…

PowerShell Get-Date Format [Various Examples]

PowerShell Get-Date Format yyyymmdd

Do you want to know how to format a date while working with PowerShell Get-Date? Here, I will show you how to use PowerShell Get-Date format to retrieve the current date and time, and format it in various ways. In this tutorial, we’ll explore how to use PowerShell Get-Date to format dates in different patterns, … read more…

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App