IDERA hosted its July 2016 #SQLChat on Wednesday, July 6 at 11 AM CT with Monica Rathbun (@SQLEspresso). This was the second largest chat we have...
database-tools
More Splitting Fun
In the previous tip, we explained how you can use a regular expression to split strings in groups of a given length. Let’s explore what else...
Splitting Groups
All PowerShell Versions Ever wanted to split a string in chunks of a given length? Regular expressions can help. Here is an example that splits a...
Using Form-Based Windows in PowerShell
WPF-based windows are the preferred way to create user interfaces this way - because the code is much easier to write, shorter, and WPF scales well...
Safely Opening WPF Windows
In the previous tip we explained how you can create WPF-based windows in PowerShell. However, when you play with WPF code inside PowerShell ISE, it...
Database Lifecycle Management 2016 Survey
At IDERA, we believe data is king: how you use data, how your organizations use data, and how the world uses data. So, we set out on a journey to...
Easily migrate your ERwin models to ER/Studio!
ER/Studio continues to add new features and capabilities such as Business Data Objects to help you improve the organization and readability of your...
Extended Beacon sample for Delphi 10.1 Berlin: Standard, Alternative and Eddystone beacons
If you look at the ExtendedBeaconScanner sample that is included for Delphi in 10.1 Berlin, you will learn how to scan for Beacon devices using...
Creating WPF Windows
WPF is a great technique to create user interfaces in PowerShell. Most of the window content can be defined using XAML, a description similar to...
Sending Emails (and Diagnosing Mail Servers)
Send-MailMessage has been around for many years. It can be used to quickly send an email without the need to have an email client at hand. All you...
Saving Multiple Credentials
Thanks to Jaap Brasser’s finding, here is an easy way of encrypting a bunch of credentials: $CredPath = "$home\Desktop\mycreds.xml"...
Saving Credentials
Here is a safe way of saving credentials to a file: $CredPath = "$home\Desktop\mycred.xml" Get-Credential | Export-Clixml -Path $CredPath...
Clearing the Recycle Bin
A much awaited new cmdlet surfaced in PowerShell 5.0: Clear-RecycleBin! You can clear the recycle bin on a particular drive, or on all drives. This...
Launching PowerShell with Admin Privileges – Always
When you launch PowerShell, you should right-click the PowerShell icon in the taskbar and pin it to the taskbar. This way it is always visible, and...
ValidateSet Instead of Enum
In the previous tip we illustrated how the new "enum" keyword works in PowerShell 5.0 to set the values that are assignable to a...
Using Enumerations
Beginning with PowerShell 5.0, you can use the new keyword "enum" to create enumerations. They can be useful for parameter validation:...
SQL Server 2016 Has a Little Something for Everyone
This Thursday, June 23, IDERA is sponsoring a virtual Windows IT Pro event to discuss what’s new with SQL Server 2016 — which was released on June...
Remotely Executing Applications on Behalf of Someone Else
When you remotely execute an application, it will run invisibly on the remote system. Here is some code that illustrates how you can run an...
Changing Excel Cells from PowerShell
If you need to change the content of a specific cell in an Excel spreadsheet, take a look at this sample code: $ExcelPath =...
Reading Excel Cells
The fastest way to read data from an Excel spreadsheet is to export the data to CSV, then use Import-CSV. However, sometimes the data in an Excel...
Minimizing All Windows (Part 2)
If all you need to do is minimizing all open windows, there is the Shell.Application COM object. PowerShell can access its methods via New-Object:...
Minimizing All Application Windows
In a previous tip we explained how PowerShell can access low level API functions such as ShowWindowAsync(). Once you better understand how a...
What did our #SQLChat teach us about Execution Plans?
IDERA hosted its monthly live Twitter Chat on Wednesday, June 8 at Noon (CT) with Thomas LeBlanc (@TheSmilingDBA). Tips, techniques and resources...
Accessing API Methods
PowerShell can use C# to define new .NET types that access the internal Windows API methods. Here is some code that makes accessible the...