Latest Posts
  • Power Tips: Using Encoding Standards

    When working with text files, it is important to always use the same text encoding for reading and writing or else special characters can be damaged, or the text file may become unreadable.

    In PowerShell 7, all cmdlets as well as the redirection operator use the default UTF8 text encoding unless you…

    • 4 Mar 2021
  • Power Tips: Fixing VSCode PowerShell Issues (Part 2)

    If VSCode won’t launch a PowerShell engine when editing a PowerShell script and instead the yellow message “Starting PowerShell” in the status bar won’t go away, then one possible fix is to use a fresh and separate portable install of PowerShell 7 as the default PowerShell engine in VSCode.…

    • 2 Mar 2021
  • Power Tips: Fixing VSCode PowerShell Issues (Part 1)

    Occasionally, VSCode stalls when trying to start the PowerShell engine, or reports errors like “Language Server Startup failed”.

    If you get the latter exception, this may be related to security settings in your enterprise. To fix, run the following line in a PowerShell console (this is one…

    • 26 Feb 2021
  • Power Tips: Finding PowerShell Commands

    Get-Command can help you find PowerShell commands for a given task but this cmdlet can only search for keywords in command names and parameters.

    A more sophisticated search command can be installed from the PowerShell Gallery:

    Install-Module -Name PSCommandDiscovery -Scope CurrentUser -Verbose


    • 24 Feb 2021
  • Power Tips: Repairing Install-Module (PowerShellGet)

    With Install-Module, you can easily download and install additional PowerShell modules from the PowerShell Gallery ( However, on Windows systems this command may be broken. Many Windows systems still ship with the outdated version 1.x, and the PowerShell Gallery has switched…

    • 22 Feb 2021
  • Power Tips: Cross-Platform Out-GridView

    Out-GridView is one of the most frequently used cmdlets and opens a general purpose selection dialog. Unfortunately, PowerShell can display graphical elements such as windows only on the Windows operating system. On Linux and macOS, graphical cmdlets such as Out-GridView are not available.

    You may want…

    • 18 Feb 2021
  • Power Tips: Discovering Package Managers on Windows (Part 2)

    In the previous tip we discussed the “Chocolatey” package manager which works best if you’d like to install software for all users (Administrator privileges required).

    Another great package manager is “Scoop” which targets regular users with no Administrator privileges. Scoop downloads…

    • 16 Feb 2021
  • Power Tips: Discovering Package Managers on Windows (Part 1)

    In the Linux world, package managers are an established way to download and install software. On Windows, package managers are still new for many.

    If you are a Windows system administrator and would like to download and install standard software packages for all users, then “Chocolatey” would be a premier…

    • 12 Feb 2021
  • Power Tips: Simplest Way to Install PowerShell 7 on Windows

    Probably the simplest and most flexible way to download and install PowerShell 7 for Windows users is to run the following one-liner:

    Invoke-RestMethod -Uri | New-Item -Path function: -Name Install-PowerShell | Out-Null

    It creates a new cmdlet Install-PowerShell…

    • 10 Feb 2021
  • Power Tips: Translating Text to Morse Code

    There seem to be web services for just about anything. Here is a web service that turns text to Morse code:

    $Text = 'SOS This is an emergency!'
    # URL-encode text
    Add-Type -AssemblyName System.Web
    $encoded = [System.Web.HttpUtility]::UrlEncode($Text)
    # compose web service URL
    $Url = "https:…
    • 8 Feb 2021