Select Page

Hosting PowerShell in a Python script

Yes Virginia, languages other than PowerShell do exist. I was working with a partner group here at Microsoft and they explained that they wanted to parse PowerShell scripts from Python. Their natural approach was to invoke the PowerShell executable and ... continue reading

PSReadLine 2.2.6 enables Predictive Intellisense by default

PSReadLine first introduced Predictive IntelliSense using History based suggestions as a customer enabled feature in November 2020. Since its introduction, two new predictors have become available: An experimental PowerShell CompletionPredictor The Az.Tools.Predictor for Azure PowerShell Today, we are announcing that ... continue reading

Reading Configuration Manager Status Messages With PowerShell

Q: I can read Configuration Manager status messages using the Monitoring tab. Can I do it using PowerShell? A: Yes you can! We can accomplish this using SQL/WQL queries, plus the Win32 function FormatMessage. Better understanding Status Messages Before we ... continue reading
Screen shot showing the difference if the calling function is a module

On Preferences and Scopes

Progress in PowerShell: a tale of Verbosity and other preferences with lessons in Scopes and Proxies thrown in It started, as these things often do, with someone complaining. In PowerShell Version 7.2 the output of Invoke-WebRequest -Verbose and Invoke-RestMethod -Verbose ... continue reading

PowerShell and OpenSSH team investments for 2022

It’s time to discuss the team investments for 2022. For some areas we’ll be completing work we’ve already started, and in others we’ll be beginning on new projects. Executive Order on Cybersecurity One of the areas we’ve already spent significant ... continue reading
image

PSReadLine 2.2 GA

We are pleased to announce the General Availability (GA) of PSReadLine 2.2, an improved command-line editing experience in the PowerShell terminal. This release is supported for PowerShell 7.x and downlevel to Windows PowerShell 5.1. The release is now available for ... continue reading
image

PSReadLine 2.2 RC

We are pleased to announce the Release Candidate (RC) of PowerShell PSReadLine 2.2, an improved command-line editing experience in the PowerShell terminal. This release is supported for PowerShell 7.x and downlevel to Windows PowerShell 5.1. The release candidate is now ... continue reading
Unable to find package provider

When PowerShellGet v1 fails to install the NuGet Provider

Recently there’s been a number of users who have encountered a particular bug with PowerShellGet 1.0.0.1 in Windows PowerShell. This bug occurs when you try to to use a PowerShellGet cmdlet that is dependent on PackageManagement, including cmdlets such as ... continue reading
🙁

How to Preview PowerShell Scripts In PowerShell

Q: When I use Windows Explorer and select a PowerShell script file – I do not see the script in the preview window. Can I fix that? A: You can make a few simple registry updates and do just what ... continue reading

How to Use $PSDefaultParameterValues

Q: When I use cmdlets like Receive-Job and Format-Table, how do I change default values of the Keep and Wrap parameters? A: Use the $PSDefaultValues automatic variable. When I first discovered PowerShell’s background jobs feature, I would use Receive-Job to ... continue reading