database-tools

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

Managing Windows Firewall

Beginning in Windows 8 and Server 2012, there is a cmdlet that helps you enable the client firewall for various profiles: Set-NetFirewallProfile...

read more

Clearing Recycle Bin

Before the advent of PowerShell 5.0, to clear the recycler, you would have to manually delete the content of the hidden $Recycle.Bin folder in the...

read more