![](/rp/kFAqShRrnkQMbH6NYLBYoJ3lq9s.png)
Easiest way to Shuffle an Array with PowerShell
I was going nuts trying to sort an array into a random order. I was hoping for something in PowerShell that would be along the lines of Shuffle() in PHP or Ruby. Thankfully I figured out the easiest way ever to do it!
How To Find Dell System Tag Using PowerShell
I administer a lot of computer brands, and support a wide ecosystem. But I see a lot of Dell Laptops, Desktops, and Servers in my normal day-to-day. A common task is to rebuild a system, or to update a driver after troubleshooting blue screens. When it’s time to download drivers, there’s one sequence of events […]
How to Check if a Server Needs a Reboot - i Love PowerShell
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 is to check the registry.. This information is stored in the HKeyLocalMachine hive of the registry.
Viewing a VMware PowerCLI Get-AdvancedSetting Value When It …
The situation: You want to ensure that an advanced setting is consistently applied through all of your VMs. Getting Advanced Settings from all of your VMs… almost
How To Update Configuration Manager Site Code With PowerShell
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 sitecode for SCCM with PowerShell. This assumes that you’ve got SCCM running, and installed on the client. I found this problem hanging around […]
Change Background Color On Administrative Shell - i Love …
Here’s a great piece of profile customization: Make your PowerShell session have a dark red background each time it starts a session running as an administrator.
Ultimate Guide to Using PowerShell Add-Member Cmdlet
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 your object that references a method of a .NET object. Between these few property and method membertypes, you’re able to add members to your object to suit your specific needs.
System Information: Getting Hardware, Software, and OS Details
Gathering system information is a crucial aspect of system administration, as it helps you understand the resources and components of your infrastructure.
The Random Password Generator for PowerShell Core 6 and 7
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 password generator in PowerShell 7 It follows a simple pattern, and I'll …
How To Open A Directory Chooser Window With PowerShell
Look at that! The way to have a nice UI popup where the user can choose their own place to save a file is really easy. You can use the built-in .NET Framework object for working with files, folders and Windows Forms objects to get it done!