As you all are aware about the security notification that MS release about the Powershell version to be updated to due to security flaw. I was planning to get the different version of Powershell on our desktops and servers. So, I wrote this script and wanted to know whether this would work before I run it on my production environment?
While PS does normally update with the OS, I believe the OP is referencing the alert a few days ago in which Microsoft is strongly suggesting everyone upgrade now:
While the alert seems geared toward Azure, the flaw itself is in .Net, and is thus an issue for everyone.
@oryx360 I don’t see why that script would not work, so long as the computers are actually up and available at the time you run it.
Invoke-Command : One or more computer names are not valid. If you are trying to pass a URI, use the -ConnectionUri parameter, or pass URI objects instead of strings.
At C:\Users\Usr001\Documents\Powershell Scripts\PowershellVersion1.ps1:2 char:1