database-tools

Reading the Clipboard

What if you wanted to paste information from the clipboard? No sweat, here is a Get-Clipboard function that outputs any text held by the clipboard:...

read more

Spying on Parameters

Your own PowerShell functions can have the same sophisticated parameters, parameter types and parameter sets that you know from cmdlets. However, it...

read more

Creating Shares Remotely

Let's assume you need to access another machine's file system but there is no network share available. Provided you have local administrator...

read more

Opening MsgBoxes

Need a quick message box to display something or ask a question? Fortunately, PowerShell can access old COM components. Here's a line that...

read more

Finding Driver Information

driverquery.exe returns all kinds of information about installed drivers, but the information seems a bit useless at first: PS> driverquery.exe...

read more

Adding New Lines to Strings

In a previous tip you learned that text arrays can easily be multiplied. The same is true for assignment operators such as +=. When you apply this...

read more

Asking for Credentials

When you write functions that accept credentials as parameters, add a transformation attribute! This way, the user can either submit a credential...

read more

Use Dumping Help

You can start by dumping all Help information into a file to learn more about a PowerShell cmdlet. You can then read all details about the cmdlet...

read more