database-tools

Using BITS to Download Files (Part 1)

BITS (Background Intelligent Transfer System) is the technique used by Windows to download huge files such as operating system updates. You can use...

Converting File Paths to 8.3 (Part 1)

Many years ago, file and folder names had a maximum of 8 characters, and these short path names still exist. They can even still be useful: short...

Updating Help without Admin Privileges

In Windows PowerShell, updating help used to require Administrator privileges due to a design flaw: help had to be stored in the location where the...

Setting and Clearing Trusted Hosts

PowerShell remoting maintains a list of trusted IP addresses and/or machine names on the client side (the machine that issues the command and...

Relational Division

Dr. Codd’s original relational algebra had eight basic operations. Since relational database management systems are based on set theory, the...

Identifying Antivirus Engine State

In the previous tip you learned how you can query WMI to find out the antivirus product present on your Windows machine: $info = Get-CimInstance...

Speeding Up PowerShell Remoting

PowerShell remoting is insanely powerful: with Invoke-Command, you can send arbitrary PowerShell code to one or many remote machines and execute it...

Launching PowerShell Scripts Invisibly

There is no a built-in way to launch a PowerShell script hidden: even if you run powershell.exe and specify -WindowStyle Hidden, the PowerShell...

Simple PowerShell Chat

Here’s a fun PowerShell script that you can use to create a simple multi-channel chat room. All you need is a network share where everyone has...

Converting SecureString to Text

It can be very useful to be able to convert an encrypted SecureString back to a plain text. This way, for example, you can use PowerShell’s...

Converting HTTP Response Codes

In the previous example we created a small PowerShell function that checks web site availability, and as part of the test results, a HTTP response...

Finding Hidden PowerShell Applications

The most widely known PowerShell hosts are certainly powershell.exe and powershell_ise.exe because they ship out-of-the-box. However, there can be...