Making the Most of Historical Data: Preventing Future SQL Server Issues

Creating ISO Files

PowerShell can turn regular folders into ISO files. ISO files are binary files that can be mounted and then behave like a read-only CD-ROM drive. Create Your Own ISO Files In the past, ISO files were commonly used to mount installation media. Today, you can easily...

Making the Most of Historical Data: Preventing Future SQL Server Issues

Determining Language Packs (Part 1)

Let’s assume you need to find the installed language packs for a Windows machine. In this three-part series, we use PowerShell’s features to tackle this problem. non-PowerShell command In part 1, we simply try and solve the issue by looking for a native non-PowerShell...

Making the Most of Historical Data: Preventing Future SQL Server Issues

Running $PSScriptRoot in Selected Code

One of the big pitfalls in PowerShell code is the automatic variable $PSScriptRoot which always holds the path to the folder the current script is located. This however requires that (a) the current script is in fact already saved to file, and (b) you are executing...

Making the Most of Historical Data: Preventing Future SQL Server Issues

Pasting Multiple Lines in PowerShell

Unexpected Behavior When Pasting Multiple Lines of PowerShell Code When you copy multiple lines of PowerShell code and paste them into a shell window, the result often is not what you expect. PowerShell starts executing the first line and won’t execute the pasted code...

Making the Most of Historical Data: Preventing Future SQL Server Issues

Cleaning Up PowerShell Modules (Part 2)

In part 1 we looked at removing PowerShell modules that were originally installed via “Install-Module”. You can as well remove PowerShell modules manually if you no longer need them. After all, they are just folders. PowerShell Modules Here’s code that lists all...