database-tools

Launching Applications with PowerShell

When you launch *.exe-applications with arguments, you may get exceptions because PowerShell may misinterpret the arguments. A better way to do this...

Appending CSV Data with PowerShell

To append a CSV file with new data, first of all make sure the type of data you append is the same type of data already in a file (or else column...

Eliminating Empty Text in PowerShell

If you wanted to exclude results with empty (text) columns, you can filter based on $null values. This will get you all processes with a valid...

Adding Personal Drives in PowerShell

In a previous tip we showed you how you can add new drives to easily access your desktop, your cookies or media like music and video. However, when...

Find WMI Classes with PowerShell

In a previous tip we showed how Get-WmiObject can search for WMI class names. Some of the returned WMI class names aren't particularly useful,...

Finding Files Only or Folders Only

In PowerShell v2, to list only files or only folders you had to do filtering yourself: Get-ChildItem $env:windir | Where-Object { $_.PSIsContainer...

Export-Csv with Append

Finally, in PowerShell v3 the cmdlet Export-Csv got a new parameter called -Append! Now you can easily append information to an existing CSV file....

New Alias in PowerShell v3

Since Select-String is such a useful cmdlet, the PowerShell decided to add an alias to it in PowerShell v3. The alias is called sls. Try this:...

Sharing PowerShell ISE v3 Code Snippets

In a previous tip we illustrated how you can create code snippets for PowerShell ISE v3 script editor using New-ISESnippet. All custom snippets are...

Restarting Computers in PowerShell

In PowerShell v3, Restart-Computer now has a number of useful new parameters. For example, you can restart a remote machine and wait for the reboot...

Colorizing PowerShell ISE v3

The new PowerShell ISE script editor in PowerShell v3 lets you customize a lot of colors, so if a particular color does not show well on a...

Out-GridView Grows Up

In PowerShell v2, Out-GridView was a useful way of displaying information in a separate window but its functionality was limited because you could...

Get-Content Can Now Read Raw Text

In PowerShell v3, Get-Content was reading text files line by line. This was great for pipeline processing but could take a long time and also...

Testing URLs for Proxy Bypass

If you'd like to find out whether a given URL goes through a proxy or is accessed directly, you can use this neat little trick: Function...