Powershell

Exploiting Select-Object

Select-Object is a basic cmdlet that most PowerShell users use frequently. However, it has some tricks that are not well known. In its most basic...

read more

Reading RunOnce Key

The RunOnce key in the Windows Registry stores all auto-starting executables. It may be empty. To check for auto-starting applications, try this:...

read more

Creating Random Passwords

Here is another small script to produce random passwords consisting of a defined number of capitals, letters, numbers, and special characters:...

read more

Piping Files and Folders

Let’s assume you want to create a function that accepts a file path. There are numerous tasks that can be done with files. You may want to...

read more

Simple WMI Browser

WMI is a powerful information repository – if you know the names of WMI classes: Get-CimInstance -ClassName Win32_BIOS Get-CimInstance...

read more

Managing FTP via PowerShell

There are no built-in FTP commands in PowerShell, but you can easily download and install a free extension that provides the missing commands. Just...

read more

Formatting Numbers (Part 2)

In the previous tip we introduced the Get-DisplayFileSize function which automatically converts bytes to readable numbers with units such as “KB”...

read more

Formatting Numbers (Part 1)

The following Get-DisplayFileSize function takes any byte value and returns a nicely formatted size, using units like “MB”, “GB”, or “PB”: function...

read more

Filtering Files

You may not have noticed this, but the -Filter parameter on Get-ChildItem (aka dir or ls) is not as specific as you think. The following line should...

read more
1 35 36 37 38 39 130