PowerShell 7: Running Active Directory cmdlets on Windows Server 2016.
In one of my previous posts we installed PowerShell 7 on Windows 10.
In my lab I installed PowerShell 7 on my Exchange 2016 Server. While there is no support for Exchange yet, Active Directory cmdlets work.
To install the preview you can run the command below from an elevated PowerShell Window:
- iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Preview"
https://everything-powershell.com/wp-content/uploads/2020/04/image.png
Compared to Windows 10, the installation window appeared almost immediately after pressing enter and the setup then came up, no captions below the few screenshots as its self explanatory.
https://everything-powershell.com/wp-content/uploads/2020/04/image-1.png https://everything-powershell.com/wp-content/uploads/2020/04/image-2.png https://everything-powershell.com/wp-content/uploads/2020/04/image-3.png https://everything-powershell.com/wp-content/uploads/2020/04/image-4.png https://everything-powershell.com/wp-content/uploads/2020/04/image-5.png https://everything-powershell.com/wp-content/uploads/2020/04/image-6.png
If you try and add a snapin using the Add-Snapin cmdlet, it fails with the error below:
https://everything-powershell.com/wp-content/uploads/2020/04/image-7.png
However Active Directory cmdlets are available and you can see them on both versions below:
https://everything-powershell.com/wp-content/uploads/2020/04/image-8-1024x486.png
Just loving this new PowerShell. Try it out in your lab.