database-tools

Discarding (Any) Output

There are (a few) commands in PowerShell that output information to the console no matter what you do. Neither redirection of streams nor assigning...

read more

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>...

read more

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: #...

read more

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...

read more

Converting Hex Numbers

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

read more
1 34 35 36 37 38 198