Turn Windows Terminal into a Portable App

Turn Windows Terminal into a Portable App

On Windows 10, there is a new and awesome tool available for any PowerShell user: Windows Terminal. It lets you use multiple PowerShell and other console tabs side-by-side, and you can mix Windows PowerShell, PowerShell 7, and Azure CloudShell consoles. You can...

Turn Windows Terminal into a Portable App

Converting File Paths to 8.3 (Part 1)

Why Short Path Names Still Matter Many years ago, file and folder names had a maximum of 8 characters, and these short path names still exist. They can even still be useful: short path names never contain spaces and other special characters and therefore never need to...

Turn Windows Terminal into a Portable App

Updating Help without Admin Privileges

In Windows PowerShell, updating help used to require Administrator privileges due to a design flaw: help had to be stored in the location where the modules resided. Updating help for Microsoft modules which are stored inside the Windows folder required write access to...

Turn Windows Terminal into a Portable App

Setting and Clearing Trusted Hosts

PowerShell remoting maintains a list of trusted IP addresses and/or machine names on the client side (the machine that issues the command and authenticates at the server). This list is important for you because it governs how you can authenticate to remote computers....

Turn Windows Terminal into a Portable App

Using PowerShell 7 inside PowerShell ISE

The PowerShell ISE built into Windows works with Windows PowerShell only and is stuck at PowerShell version 5.1. Typically, when you want to use an editor to write PowerShell 7 code, Visual Studio Code and the PowerShell extension is the way to go. See also: Free...

Relational Division

Relational Division

Dr. Codd’s Eight Fundamental Relational Algebra Operations Dr. Codd’s original relational algebra had eight basic operations. Since relational database management systems are based on set theory, the first four are traditional set operations: intersection, set...

Turn Windows Terminal into a Portable App

Identifying Antivirus Engine State

In the previous tip you learned how you can query WMI to find out the antivirus product present on your Windows machine: $info = Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct $info Understanding the ProductState Property The ProductState...

Turn Windows Terminal into a Portable App

Speeding Up PowerShell Remoting

PowerShell remoting is insanely powerful: with Invoke-Command, you can send arbitrary PowerShell code to one or many remote machines and execute it there in parallel. PowerShell Remoting on Windows Servers On Windows Servers, PowerShell remoting is typically enabled,...

Turn Windows Terminal into a Portable App

Creating PowerShell Functions Dynamically

New-Item can create new things on any PowerShell drive, including the function: drive that holds all PowerShell functions. Defining Dynamic Functions in PowerShell If you’d like, you can define new functions dynamically inside your code. These new functions would then...

Turn Windows Terminal into a Portable App

Identifying Windows Type

WMI returns a cryptic code number of every distinct Windows SKU: PS> Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -ExpandProperty OperatingSystemSKU 48 How to Translate Windows SKU Codes into Meaningful Text To translate this number into a...

Turn Windows Terminal into a Portable App

Launching PowerShell Scripts Invisibly

There is no a built-in way to launch a PowerShell script hidden: even if you run powershell.exe and specify -WindowStyle Hidden, the PowerShell console will still be visible for a fraction of a second. To launch PowerShell scripts hidden, you can use a VBScript,...

Turn Windows Terminal into a Portable App

Get-ComputerInfo vs. systeminfo.exe (Part 1)

For a long time, the command-line utility systeminfo.exe provides a wealth of information about a computer and can return object-oriented results with a little trick: $objects = systeminfo.exe /FO CSV | ConvertFrom-Csv $objects.'Available Physical Memory' Advantages...

Installing the SQLDM CWF dashboard during a trial

Installing the SQLDM CWF dashboard during a trial

In this blog post, I'll be guiding you through the installation of the SQL Diagnostic Manager and the IDERA Dashboard in a trial environment. In the steps below, I'll use the default directories. Just something to keep in mind as you perform the...

Turn Windows Terminal into a Portable App

Simple PowerShell Chat

Creating a Simple Multi-Channel Chat Room with PowerShell Here’s a fun PowerShell script that you can use to create a simple multi-channel chat room. All you need is a network share where everyone has read and write permissions. The chat is file-based and makes use of...

Turn Windows Terminal into a Portable App

Converting SecureString to Text

It can be very useful to be able to convert an encrypted SecureString back to a plain text. This way, for example, you can use PowerShell’s “masked input” features. Simply ask for a SecureString, and PowerShell takes care of masking the user input. Next, take the...

Turn Windows Terminal into a Portable App

Using Awesome Export-Excel Cmdlet (Part 5)

This is part 5 of our mini-series about the awesome and free “ImportExcel” PowerShell module by Doug Finke. Make sure you install the module before you play with this tip: PS> Install-Module -Name ImportExcel -Scope CurrentUser -Force Recap from Part 4: Displaying...

Turn Windows Terminal into a Portable App

Converting HTTP Response Codes

Checking Website Availability with a PowerShell Function In the previous example we created a small PowerShell function that checks web site availability, and as part of the test results, a HTTP response code was returned. Let’s check out how this numeric code can be...

Turn Windows Terminal into a Portable App

Finding Hidden PowerShell Applications

The most widely known PowerShell hosts are certainly powershell.exe and powershell_ise.exe because they ship out-of-the-box. However, there can be many more (and hidden) PowerShell hosts running. Any software that instantiates the PowerShell engine is a PowerShell...

1 4 5 6 7 8 16