News

This will open your profile in a new VSCode window, where you can add your own code and customizations. Customizing Your PowerShell Profile Now that we have created our profile, let’s customize it 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 ...
Name This parameter is mandatory in most parameter sets Name is the name of the member, whether it’s a method or property. Methods on objects are called by using the parenthesis () to invoke the ...
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 ...
This will prompt you for your remote machine credentials, and then establish a remote PowerShell session on the remote machine. From here, you can execute commands on the remote machine just as you ...
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 ...
This creates a new key named MyApp under the Software key in the registry. Accessing providers as drives Once a provider is registered, we can access it as if it were a drive. A drive is nothing more ...
I’ve mentioned previously about How to Create a Random Password using the .NET Framework. That works for Windows Powershell, but it doesn’t work for .NET 5, which is what modern versions of PowerShell ...
In this example, we created a function called Say-Hello that simply writes “Hello, World!” to the console. Note that the function name is followed by a pair of curly braces that contain the code for ...
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 ...
Did you move domains recently or reconfigure your System Center Configuration Manager (SCCM)? Maybe you’ve found your Config Manager site code broken. Here’s a one-liner that shows you How to update a ...
Because of my self-appointed title as an Ultimate Microsoft Fanman, it really pains me to disclose this One-Liner. That’s because saying it is a commonly used suggests that Internet Explorer locks up ...