database-tools

Changing Operating System Description

Each Windows operating system has a description, and you can view (and change) this description with the following command: PS> control sysdm.cpl...

Removing Empty Properties

WMI and Get-CimInstance can provide you with a lot of useful information but the returned objects often contain a number of empty properties: PS>...

Using Assertions

Often, your code needs to assert certain prerequisites. For example, you may want to ensure that a given folder exists, and use code like this: #...

Wake On LAN

There is no need for external “Wake On LAN” tools. If you want to wake up a network machine, simply tell PowerShell the MAC address of...

Converting Hex Numbers

PowerShell can interactively convert hexadecimal numbers when you prefix “0x”: PS> 0xAB0f 43791 If the hex number is stored in a...

Auto-Learning Argument Completion

Argument completion is awesome for a user because valid arguments are always suggested. Many built-in PowerShell commands come with argument...

Plagued by IT Downtime?

Cut IT Downtime By Using Server Monitoring Tools.   In today’s world, we need to keep our organizations up and running 24/7 with limited...

Adding Argument Completion (Part 2)

In the previous tip we talked about the new [ArgumentCompletions()] attribute that was added to PowerShell 7, and how you can use it to add...

Adding Argument Completion (Part 1)

Adding argument completion to your PowerShell function parameters can improve the usability of your functions tremendously. A common approach is...

Decoding Windows Product Key (Part 2)

In the previous tip we explained how you can ask WMI for a partial Windows product key. If you have lost your original product key, here is a way to...

Decoding Windows Product Key (Part 1)

There are a lot of script examples out there and even key recovery tools that promise to return the full product key, but in many cases, the...

1 27 28 29 30 31 159