Powershell

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
1 20 21 22 23 24 130