Sep 10 2020 02:04 PM
Sep 10 2020 02:04 PM
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.
Sep 10 2020 02:21 PM
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.
Sep 17 2020 06:00 PM
@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.
Sep 21 2020 09:19 PM
@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: https://www.youtube.com/watch?v=xyfeF0eIhgs
I also wrote a chapter for the PowerShell Conference Book Volume 3 (https://leanpub.com/psconfbook3) that talks about using PowerShell on Raspberry Pi, on a retro games arcade machine!
Sep 22 2020 09:28 PM
Sep 22 2020 10:44 PM
@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 :)