In the PowerShell ISE, there are two key shortcuts that can help you. Pressing TAB works just like in the console, and each time you press TAB, you...
database-tools
Join us in Welcoming Embarcadero’s Customers and Partners
We recently announced our acquisition of Embarcadero Technologies. This week, IDERA CEO Randy Jacops sent a letter to Embarcadero’s customers and...
Adding Command Not Found Handler
Whenever PowerShell comes across a command name that it does not know, you see a red error message. However, starting with PowerShell 3.0, there is...
Auto-CaseCorrecting PowerShell Code
Often when you write PowerShell scripts, you may not have used the correct casing, used only partial parameter names, or used aliases instead of...
ER/Studio Database Sizing Guide – Best Practices
ER/Studio Database Sizing Guide - Best Practices Howdy! In this blog post, let us shed some light on how to better leverage Capacity planning and...
Finding Loaded Assemblies
To dump all .NET assemblies that are loaded in a PowerShell session, try this: System.AppDomain]::CurrentDomain.GetAssemblies() | Where-Object...
Finding Cmdlet Parameter Aliases
PowerShell cmdlets and functions can have parameters, and these parameters can have (shorter) alias names. One prominent example is the...
Simplify Parameter Attributes
If all of your systems run PowerShell 3.0 or better, you can start shortening function parameter attributes. Boolean attributes now all default to...
Why GetTempFileName() is Evil
Some may have come across a .NET call that is supposed to generate random temporary file names: $path = [System.IO.Path]::GetTempFileName() $path...
The Data Warehouse of the Future Using Microsoft SQL Server
The data landscape has changed considerably since Kimball first proposed the dimensional approach to building a data warehouse schema. Over the last...
Creating Encoded PowerShell Commands on the Fly
When you run PowerShell code outside a PowerShell console, you need to submit the code to powershell.exe. To make sure your code does not conflict...
IDERA Welcomes Embarcadero
This is an exciting day for us as we welcome Embarcadero into the Idera family. Embarcadero’s award-winning software tools help application...
Adding ValidateRange to a Variable
If you'd like to apply a numeric range of legal values to a variable, you can add a ValidateRange attribute to the variable, pretty much like...
Why $MaximumHistoryCount has a Limit
If you try and increase your maximum command history, you may run into some limitations: PS C:\> $MaximumHistoryCount = 100000 The variable...
5 DevOps Conferences You Should Consider Attending
We love developer conferences, they are informative, fun and a great way to network with like minded people. The sessions can help you and your...
Increase History Cache
Command history can be a great help when you work for a while in a PowerShell session. Each session stores the commands you issued, and you can...
Getting Last Bootup Time
In PowerShell 3.0 and better, it's trivial to get back real DateTime information from WMI using Get-CimInstance. This would tell you when your...
The Data Model Scorecard
Steve Hoberman is a presenter, consultant, and the author of seven books on data modeling, including the bestseller Data Modeling Made Simple. One...
Copying Arrays (Part 2)
In a previous tip we explained how you can safely "clone" an array using Clone() method. This will copy the content of an array to a new...
Copying Arrays (Part 1)
When you copy variable content, you may just copy the "reference" (memory address), not the content. Take a look at this example: $a =...
Using Encoded Scripts
In VBScript there were encoded scripts. Encoding is by no means a safe way of hiding script content, but it makes it a little harder for users to...
Use try…finally to Execute Code when PowerShell Closes
If you must run some code before PowerShell should exit, you could simply use a try…finally clause like this: try { # some code Start-Sleep...
Using Background Jobs
Background jobs can help speed up your scripts. If your scripts consist of a number of separate tasks that also could run in parallel, then...
Removing Windows 10 Apps
Windows 10 comes with a bunch of preinstalled apps. Fortunately, you can use PowerShell to remove any app you don’t like. You may need...