News

Loops are an essential part of any programming language, and PowerShell looping is no exception. Loops allow you to repeat a block of code multiple times, which can be useful for a wide range of tasks ...
I’ve been rereading the Windows PowerShell Cookbook and I came across a variable I hadn’t noticed before… It turns out to be related to the -match comparison operator. -Match performs a regular ...
ScriptMethod: Add a method to your object that processes a scriptblock when called. CodeProperty: Code properties get their values by referencing a method of a .NET object. CodeMethod: Add a method to ...
PowerShell is an invaluable tool for System Administrators when it comes to troubleshooting system issues. With its wide range of built-in cmdlets and flexibility, PowerShell enables you to ...
If you’re trying to determine which of your servers require reboots, you’ll love this PowerShell script to check the status. It turns out that a simple way to identify servers that are pending reboot ...
Gathering system information is a crucial aspect of system administration, as it helps you understand the resources and components of your infrastructure. In this article, we will explore how to use ...
PowerShell Remoting is a powerful feature that allows administrators to manage multiple remote systems from a single console. It allows you to run commands and scripts on remote computers, transfer ...
I think for a registry export I would probably just use the dos command. The PowerShell isn’t doing anything very special here, no extra functionality and I would just keep it simple. Still, there ...
If you’ve not started streamlining your typing at the console by using these PowerShell aliases, you can get more done per keystroke. A good thing to keep in mind is that while aliases can help a lot ...
PowerShell modules are packages of scripts, functions, and other resources that can be used to extend the functionality of PowerShell.Modules can be created by anyone and shared with the community, or ...
PowerShell hashtables are a type of collection that allow you to store data in a key-value format. They’re incredibly useful for storing and retrieving data, and they’re a common feature in PowerShell ...
What works for Windows Powershell, doesn't always work for .NET 5, which is what modern versions of PowerShell like PowerShell 7 use. Well, thankfully it's pretty easy to write a simple random ...