database-tools

Creating System Footprints

WMI can retrieve a lot more object instances than you might think. If you submit a parent class, Get-WmiObject returns all instances of all derived...

read more

Retrieve Exchange Rates

If you need up-to-date exchange rates, try loading the rates via XML from the European Central Bank. This sample gets you the latest exchange rates...

read more

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