database-tools

Mixing Parameter Sets

You will find that some cmdlet parameters belong to different parameter sets. Any cmdlet can use only parameters from one parameter set. You will...

read more

Cmdlet Alias

For most cmdlets, there are convenient shortcut names that are the alias names. So whenever you find yourself using a new cmdlet, you should take a...

read more

Visiting Help Topics

All Help topics inside of PowerShell are stored as plain text files. You can read them by using Get-Help, but you can also more easily open the...

read more

Dangerous Keystroke

You are probably aware of CTRL+C to break the current command. However, you should beware of CTRL+BREAK! This key shortcut will not only break the...

read more

Getting Advanced Help

While Get-Help does not just document cmdlets, it also allows you to find out more about general PowerShell concepts: Get-Help about_* For example,...

read more

Getting Paginated Help

Reading Help information using Get-Help is great, but often (especially when specifying the -full or -detailed switch parameter), you retrieve so...

read more

Childproofing PowerShell

If you are new to PowerShell, you may be worried about causing unwanted damage or change. One way of childproofing PowerShell is by changing the...

read more

Use the Force!

Many cmdlets support the -force switch parameter. With it, the cmdlet will do more than usual. What exactly -force does depends on the cmdlet. For...

read more

Listing Program Versions

You may already know about the Get-Process cmdlet, which lists all running processes, locally and remotely (use -computername for remote access)....

read more

Using Relative Dates

Sometimes, you need relative dates. What date was 14 days ago? Maybe you want to use this relative date to select files of a certain age. You can...

read more

Validating Input Type

The -as parameter is not widely known but is extremely versatile. It tries to convert data into a .NET type, and when it fails, it simply returns...

read more

Enabling Block Cursor

How would you like to get back the big ugly block cursor you may know from Commodore 64-systems? Here is a way: $Host.UI.RawUI.CursorSize = 100...

read more

Resolve Host Names

Have you ever needed to resolve a host name to find its IP address? Simply use a .NET method and wrap it as PowerShell function: function...

read more