database-tools

Get Current IP Address

Here is a quick way to get all IP addresses assigned to your computer: #requires -Version 1 $ipaddress = [System.Net.DNS]::GetHostByName($null)...

read more

Safely Use UNC Paths

Whenever you use UNC paths in PowerShell, your script may break. Since a UNC path has no drive letter, PowerShell looks at the current directory...

read more

Using Splatting

With splatting, you can call cmdlets and programmatically control the parameters you submit. To do this, add the parameters and values to a hash...

read more

Reading RSS Feeds

RSS feeds can be read by using an XML object, however XML objects do not support proxies. Here is an example that uses Invoke-WebRequest to retrieve...

read more

Encoded Passwords

If you must put a credential object in your script, here is a way how you can convert a secure string into encrypted text: $password = Read-Host...

read more