r/PowerShell • u/rodtrent44 • May 21 '18
News Microsoft Replacing Windows with Linux for PowerShell in the Cloud
https://myitforum.com/microsoft-replacing-windows-with-linux-for-powershell-in-the-cloud/
161
Upvotes
r/PowerShell • u/rodtrent44 • May 21 '18
11
u/da_chicken May 21 '18
.Net Core is a complete rewrite of .Net focused on multi-platform and containers. They're different enough that you should consider them completely different products. Many of the classes available in the .Net Framework simply don't exist in .Net Core. Some classes which exist in the .Net Framework will never be implemented in .Net Core because, like I said, the models don't match between Linux and Windows. You can't just
Import-Module ActiveDirectoryorImport-Module SqlServeron PowerShell Core 6 and go. The modules are written for Windows PowerShell. Even if the module exists, there will be missing commands (SqlServeris still missingInvoke-Sqlcmd, for example).There is a compatibility pack for .Net Core which adds back in several missing features, but it's not really finished yet.
So, yeah, PowerShell Core will be great in 2 to 5 years when it's at version 6.8 or 7.2 and based on .Net Core 3.1 or whatever and there's feature parity. Until then, it's really not a usable tool because it doesn't do what I use PowerShell for. I'm not going to run both Windows PowerShell and PowerShell Core right now. That's just a mess. Too much works in Windows PowerShell and doesn't work in PowerShell Core.