Are you running, or scripting for, PowerShell 7?


I'm interested to know, who out there is using PowerShell 7 day to day? If so, are you using it only interactively on your workstation or are you actively targeting new features in your scripts?


If you're not using it, why not? Do you have blockers?


I personally use PowerShell 7 as my go to shell, but my scripts still target Windows PowerShell 5.1 (or lower) as that's the reality of the environments I'm supporting day to day.

6 Replies

My default in Windows Terminal is now PS7 on my laptop, but almost all the servers we manage are on 5.1.  So, it has gotten me in trouble a few times when I found out something I wrote and tested on my device didn't work on our servers.  We do use it extensively for our Jenkins slaves since they are all linux.

@Brian McLain wrote:

So, it has gotten me in trouble a few times when I found out something I wrote and tested on my device didn't work on our servers.

 I hear that 100%! Have been loving the ternary operator, but limiting myself to using it interactively at the console and using full if/else statements in scripts.

@Joshua King I'm primarily using it on my workstation, but I also use it extensively in my lab environment. But I also run PowerShell v1 in my lab for backward-compatible script testing. I try to make all of my scripts forward compatible to v7, and backward-compatible to v1 whenever possible :)


If you'll pardon the self promotion, this is a good overview of the more interesting places to run PowerShell v7:


I also wrote a chapter for the PowerShell Conference Book Volume 3 ( that talks about using PowerShell on Raspberry Pi, on a retro games arcade machine!

We go through running PowerShell on some of the least Microsoft-y systems you can imagine, with Frank Lesniak. This presentation features a number of PowerSh...
I am using PS7 as my daily driver fro 98% of my work.

@franklesniak I haven't yet had a chance to read Volume 3 of the PowerShell Conference Book, but the concept in general of running PowerShell on single board computers like the Pi is really interesting to me.

What's PowerShell's job on there (I'm assuming not running the games? :p)?

@Joshua King my chapter is about using the Raspberry Pi as an arcade game emulator. However, arcade emulation is tricky and has an overwhelming number of games, many of which are not playable or relevant. So in the chapter, I use PowerShell to sort through the "database" of games, pulling in auxiliary data sources to help. Since the emulation platform (RetroPie) is primarily run on Raspberry Pi, I wanted to make sure my code worked on Raspberry Pi :)