I have a PowerShell script that I wrote on a Windows 10 device using PowerShell 5.1.17763.771. It takes a path to a .tgz file, unarchives it, and places the extracted folder in another path. It does this using the built-in tar
cmdlet that was added to PowerShell a year or two ago. It works exactly as intended on my machine.
When running this same script on Windows Server 2016, it fails saying tar
is an unrecognized cmdlet. The PowerShell version running on this server is 5.1.14393.3471. I've run every Windows update I can on the server. How can I get the native tar
cmdlet to work on Windows Server 2016? Are there updates to PowerShell that I'm missing? Can I install a Microsoft-created module that includes the tar
cmdlet?