I was playing around with PowerShell 6 and 7 RC which a colleague showed me was available.
Firstly to get the new version, you need to run the following command below: (Note it includes the -Preview switch)
- iex “& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Preview”
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-1.png)
It does take a few minutes to bring up the installation window as shown below:
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-2.png)
Click next..
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-3.png)
Select your install location, I left this as default.
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-4.png)
Make your selection above, I chose the defaults and clicked next…
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-5.png)
Now click Install..
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-6.png)
Setup takes a minute or so to complete..
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-7.png)
On the finish screen you have the option to select “Launch PowerShell” and then click Finish.
Post Installation:
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-8.png)
As you can see, you are presented with a black window vs the standard blue one that comes with PowerShell.
The nice thing about this is that you can now run the Test-connection command vs doing a ping to a domain.
The command to use is:
- Test-Coonnection -TargetName <Domain>
![Powershell:- list missing windows updates in windows 10(20h2) Powershell:- list missing windows updates in windows 10(20h2)](https://everything-powershell.com/wp-content/uploads/2020/03/image-9.png)
As you can see it gives you the source and destination address as well as the latency, BufferSize and Status compared to a normal ping.
Very cool indeed.
Hope it helps.