database-tools

Hiding Common Parameters

In our last tip we explained how you can hide parameters from IntelliSense. This has a cool side effect that we’d like to point you to today!...

Turning Objects into Hash Tables

In one of the previous tips we examined how Get-Member can retrieve the property names for an object. Here is another use case that takes any...

Hiding Parameters

In the previous tip we explained how you can dump all the legal values for a PowerShell attribute. Today we’ll take a look at the [Parameter()]...

Aqua Data Studio's Powerful Data Grid

One of the most overlooked powerful features in Aqua Data Studio is the Data Grid. The data grid can double your productivity with Data Management....

Exploring PowerShell Attribute Values

As you might know, you can add attributes to variables and parameters to more specifically define them. For example, the line below defines a...

Using Dynamic Parameters

Most PowerShell functions use static parameters. They are defined in a param() block and are always present. A little-known fact is that you can...

Accessing Website Content

Typically, it is trivial for PowerShell to retrieve raw HTML website content by using Invoke-WebRequest. A script can then take the HTML content and...

Accepting Different Parameter Types

Occasionally, you might want to create a function that accepts different parameter types. Let’s say you want the user to be able to either submit an...

Translating VBScript to PowerShell

Most old VBS scripts can be easily translated to PowerShell. The key command in VBS is “CreateObject” which lets you access system libraries....

Invoking Excel Macros from PowerShell

PowerShell can invoke Microsoft Excel sheets and start contained macros. While this would work with an invisible Excel application window, it is a...

Keeping Track of Script Execution

Here is a chunk of code that demonstrates how you can store private settings in the Windows Registry: # store settings here $Path =...

Retrieving Outlook Calendar Entries

If you use Outlook to organize your calendar events, here is a useful PowerShell function that connects to Outlook and dumps your calendar entries:...

1 49 50 51 52 53 159