database-tools

Compressing to ZIP Files

In PowerShell 5.0, Compress-Archive can easily compress files and folders to a ZIP file: PS C:\> Compress-Archive -Path c:\sourcefolder...

read more

Validate Read-Host Input

Beginning in PowerShell 4.0, you can use validators for variable assignments. This gives you a quick and easy way of validating user input, too. The...

read more

Fixing Remoting Bug

Have you ever tried to enable PowerShell remoting with Enable-PSRemoting, and just got an error complaining about not being able to check the...

read more

Refreshing Icon Cache

Sometimes, Windows Explorer does not show correct icons. When you update to PowerShell 5.0, for example, both PowerShell and PowerShell ISE got new...

read more

Formatting Text Output

If you need to return multiple items in a nicely formatted text report, here is a simple trick: get yourself an ordered hash table (supported in...

read more

Encoding Pictures

If your script needs resources such as icons or pictures, you do not have to ship these resources separately. They can be Base64-encoded and added...

read more