database-tools

Calculate time zones

If you need to find out the time in another time zone, you can convert your local time to Universal Time and then add the number of offset hours to...

read more

Checking all event logs

What if you would like to get a quick overview of all error events in any event log. Get-EventLog can only query one event log at a time. So, you...

read more

Creating IP segment lists

If you need a list of consecutive IP addresses, you can check out this function. You can see that it takes a start and an end address and then...

read more

Getting significant bytes

If you need to split a decimal into bytes, you can use  a function called ConvertTo-HighLow, which uses a clever combination of type casts to...

read more

Splitting hex dumps

Imagine you have a text string with a hex dump so that each hex number consists of two characters. How would you split this into individual hex...

read more

Finding new processes

Get-Process will return a list of all processes. If you just want to see those started within the last 10 minutes, you can check StartTime. Both...

read more

Load registry user hive

If you need to manipulate registry data from another user, you may be out of luck because HKEY_CURRENT_USER always points to your own user data....

read more

Dump enumerations

You can create a simple helper function called Get-Enum  to list all the values in an enumeration: function Get-Enum($name){...

read more

Find Latest Processes

You should try this piece of code to find all processes that were started within the past 10 minutes: Get-Process | Where-Object { try {...

read more

Use Multiple Wildcards

Did you know that you can use multiple wildcards in paths? This will give you a lot of control. Check this out: This line will find all DLL-files in...

read more