database-tools

Left Side of Comparison

When using comparison operators, always make sure the relevant part is placed left. That’s because PowerShell looks at the left side of an...

read more

Finding Missing Updates

PowerShell can access the same logic that is used by the Windows Update Client, and query for missing updates: $UpdateSession = New-Object...

read more

Finding Logon Events

Provided you have Administrator privileges, here is a quick and easy way of dumping all login events. This way you can find out who logged in to a...

read more

Resolving URLs

Often, URLs redirect to the final URL, so if you’d like to know where a given URL really points to, use a function like this: function...

read more

Finding Size of Download

When you download files from the internet and use PowerShell, you may want to find out how long the download will take. While you can check the size...

read more

Detecting Key Press

Sometimes it would be nice if a script was able to detect a key press without interfering with the script and its inputs. This way, you could add...

read more

PowerShell 7

Today we are not talking about code but about PowerShell in general. Microsoft has announced that the next release of PowerShell is called...

read more

RSAT Tools Built-In

The Remote Server Administration Tools (RSAT) used to be an external download that added two important PowerShell modules: ActiveDirectory and...

read more
1 51 52 53 54 55 198